Messages in this thread | | | From | "David Schwartz" <> | Subject | RE: epoll_wait, epoll_ctl | Date | Fri, 13 Jan 2006 14:51:10 -0800 |
| |
> So, what's supposed to happen in a threaded program where one thread > does an epoll_ctl on an epoll fd while another thread is currently > waiting in epoll_wait on the same fd?
Nothing special.
> In particular, what happens if a > thread does an EPOLL_CTL_DEL on one of the fds that is currently being > waited on? Is there a possibility of an event being returned on the fd > even after the EPOLL_CTL_DEL completes?
Absolutely. The EPOLL_CTL_DEL might not even start until after the event has been determined to be returned and the wait is in the process of returning.
DS
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |