EventLoop_GetWaitDescriptor Function

Header: #include <applibs/eventloop.h>

Gets a file descriptor for an EventLoop.

The file descriptor is signaled for input when the EventLoop has work ready to process. The application can wait or poll the file descriptor to determine when to process the EventLoop with EventLoop_Run.

int EventLoop_GetWaitDescriptor(EventLoop *el);

Parameters

  • el The EventLoop.

Return value

Returns the waitable descriptor on success, or -1 on failure, in which case errno is set to the error value.