Make EPOLLET the default

The whole worker thread mechanism assumes EPOLLET and non-blocking
descriptors, so that should be the default.

TODO: In debug mode, check that the provided file descriptor indeed
      is non-blocking.
This commit is contained in:
Johan Wikman
2017-02-15 19:44:54 +02:00
parent 56c132f273
commit 22b39daf06
2 changed files with 7 additions and 1 deletions

View File

@ -76,7 +76,9 @@ typedef struct mxs_poll_data
* data->thread.id: Will be updated by `poll_add_fd_to_worker`.
*
* @attention If the descriptor should be added to all workers, then the worker
* thread id will be 0.
* thread id will be 0.
*
* @attention The provided file descriptor *must* be non-blocking.
*
* @return 0 on success, non-zero on failure.
*/