[Overview][Constants][Types][Procedures and functions] |
Wait for an event on an epoll file descriptor.
Source position: linux.pp line 144
function epoll_wait( |
epfd: cint; |
events: PEpoll_Event; |
maxevents: cint; |
timeout: cint |
):cint; |
epoll_waitwaits for timeoutmilliseconds for an event to occur on epoll file descriptor epfd. If timeoutis -1, it waits indefinitely, if timeouris zero, it does not wait, but returns immediatly, even if no events were detected.
On return, data for at most maxeventswill be returned in the memory pointed to by events. The function returns the number of file descriptors for which events were reported. This can be zero if the timeout was reached.
On error -1 is returned, and errno is set accordingly.
|
Create new epoll file descriptor |
|
|
Modify an epoll file descriptor |
|
|
Close file descriptor |