File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 13841384after each call or nullify \texttt {revents }.
13851385\item Time set to -1 has the same effect as \texttt {NULL } for \texttt {select }.
13861386\item If the number of descriptors is set to 0 (\texttt {fds } should be then
1387- \texttt {NULL }), \texttt {poll } can be simple used to sleep with less than second
1388- granularity. Example: \label {POLL_SLEEP_C } \example {sleep/poll-sleep.c} That
1389- said, this "trick" does not work on macOS.
1387+ \texttt {NULL }), \texttt {poll } can be simply used to sleep with less than one
1388+ second granularity. Example: \label {POLL_SLEEP_C } \example {sleep/poll-sleep.c}
1389+ That said, this "trick" does not work on macOS.
13901390\begin {itemize }
13911391\item Another way is to use \texttt {nanosleep }, that is part of POSIX.4
13921392extension and therefore does not have to be always available.
You can’t perform that action at this time.
0 commit comments