EPOLL_CTL_DISABLE and multithreaded applications
Posted Oct 19, 2012 14:05 UTC (Fri) by
mkerrisk (subscriber, #1978)
In reply to:
EPOLL_CTL_DISABLE and multithreaded applications by kjp
Parent article:
EPOLL_CTL_DISABLE and multithreaded applications
Better solution: since epoll lets you store a generic 64 bit cookie, just use a 64 bit sequence that increments for each new file descriptor.
I haven't thought through your solution very far, but it seems unfortunate to have to chew up the cookie to solve this problem. User space might very want to user the epoll_event.data field for other purposes.
(
Log in to post comments)