[Overview][Constants][Types][Procedures and functions][Index] |
Wait for an event on an epoll file descriptor.
Source position: linux.pp line 250
function epoll_wait( |
epfd: cint; |
events: PEpoll_Event; |
maxevents: cint; |
timeout: cint |
):cint; |
epoll_wait waits for timeout milliseconds for an event to occur on epoll file descriptor epfd. If timeout is -1, it waits indefinitely, if timeour is zero, it does not wait, but returns immediatly, even if no events were detected.
On return, data for at most maxevents will 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 |
lazarus-ccr.sourceforge.net |