struct

Crystal::EventLoop::Polling::PollDescriptor

Inherits Struct / Value / Object

Information related to the evloop for a fd, such as the read and write queues (waiting Event), as well as which evloop instance currently owns the fd.

Thread-unsafe: parallel mutations must be protected with a lock.

Constructors

Instance methods

empty?

Returns true when there is at least one reader or writer. Returns false otherwise.

Source
initialize
Source
owned_by?(event_loop) : Bool
Source
remove(fd : Int32) : Nil

Removes fd from its owner event loop. Raises on errors.

Source
remove(fd : Int32, &) : Nil

Same as #remove but yields on errors.

Source
take_ownership(event_loop : EventLoop, fd : Int32, index : Arena::Index) : Nil

Makes event_loop the new owner of fd. Removes fd from the current event loop (if any).

Source