class FDWaiter
Defined at line 23 of file ../../src/lib/fsl/tasks/fd_waiter.h
Instances of FDWaiter are thread-safe.
Public Methods
void FDWaiter (async_dispatcher_t * dispatcher)
Defined at line 13 of file ../../src/lib/fsl/tasks/fd_waiter.cc
void ~FDWaiter ()
Defined at line 17 of file ../../src/lib/fsl/tasks/fd_waiter.cc
bool Wait (Callback callback, int fd, uint32_t events)
Creates an asynchronous, one-shot wait for the given events on the given
file descriptor until the given timeout. Calls |callback| when the wait
completes. (See |Callback| for a description of the arguments passed to the
callback.)
Only one wait can be outstanding at a time. Calling wait while a wait is
still underway is an error.
* |callback| is the callback to call when the wait is complete.
* |fd| is the file descriptor to wait on.
* |events| is a bitmask of POSIX-style events (|POLLIN|, |POLLOUT|,
|POLLERR|).
Returns true if |fd| is a valid file descriptor that supports waiting on
the given events. Otherwise, returns false.
Defined at line 25 of file ../../src/lib/fsl/tasks/fd_waiter.cc
void Cancel ()
Cancels an outstanding wait.
It is an error to call cancel if there is no outstanding wait.
Defined at line 61 of file ../../src/lib/fsl/tasks/fd_waiter.cc