Bug 43072 (epoll_threads)
Summary: | epoll & threads | ||
---|---|---|---|
Product: | Documentation | Reporter: | Armin Rigo (arigo) |
Component: | man-pages | Assignee: | Michael Kerrisk (mtk.manpages) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | mtk.manpages |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | n/a | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Armin Rigo
2012-04-08 11:49:58 UTC
Thanks for the report. You are right that it's useful and cannot be achieved with select(2) and poll(2). I added the following to epoll_wait(2): --- a/man2/epoll_wait.2 +++ b/man2/epoll_wait.2 @@ -183,6 +183,16 @@ Library support is provided in glibc starting with version 2.6. .SH CONFORMING TO .BR epoll_wait () is Linux-specific. +.SH NOTES +While one thread is blocked in a call to +.BR epoll_pwait (), +it is possible for another thread to add a file descriptor to the waited-upon +.B epoll +instance. +If the new file descriptor becomes ready, +it will cause the +.BR epoll_wait () +call to unblock. .SH "SEE ALSO" .BR epoll_create (2), .BR epoll_ctl (2), |