pub unsafe extern "C" fn pomp_loop_get_fd(
loop_: *mut pomp_loop,
) -> isizeExpand description
Get a file descriptor (or event handle for win32) that can be monitored for reading (or waited for) when there is some activity in the loop.
This fd/event shall be put in the user main loop (select, poll, epoll, glib, win32…) and monitored for input events. When it becomes readable, the function pomp_loop_wait_and_process shall be called to dispatch internal events.
@param loop : loop. @return file descriptor (or event handle for win32), negative errno value in case of error.
@remarks for poll/win32 implementation this will create an internal worker thread that will monitor all registered fd/handles and signal the single fd/event returned by this function.