diff options
author | Yann Ylavic <ylavic@apache.org> | 2022-01-27 14:21:39 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2022-01-27 14:21:39 +0000 |
commit | be7b65cb433b84b35eacfa4209e17e271baa9eb1 (patch) | |
tree | c4ea9451b942e1d97ebe9e1732f3c4c982dfba04 /threadproc | |
parent | a3d78aae6ed5859177f225775a78e0c57f9aaa34 (diff) | |
download | apr-be7b65cb433b84b35eacfa4209e17e271baa9eb1.tar.gz |
poll: Provide APR_POLLEXCL for exclusive wake up on systems that support it.
epoll has EPOLLEXCLUSIVE, start with that.
poll: Follow up to r1897521: struct epoll_event's events field is unsigned int.
EPOLLEXCLUSIVE is 1u << 28 so it doesn't fit in an int16_t, use unsigned for
the native epoll events type.
poll: Follow up to r1897521: Clarify what APR_POLLEXCL means.
This is to avoid the thundering herd issue when multiple threads/processes
poll on the same descriptor (usually listening/to-be-accept()ed descriptors).
Merge r1897521, r1897548, r1897549 from trunk.
Submitted by: ylavic
Reviewed by: ylavic
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.8.x@1897550 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
0 files changed, 0 insertions, 0 deletions