commit | 5ead7e7b3bbd9173bcd21ab323f6538c55609b69 | [log] [tgz] |
---|---|---|
author | Rafał Kuźnia <rafal.kuznia@nordicsemi.no> | Mon Jul 20 23:20:26 2020 +0200 |
committer | Carles Cufí <carles.cufi@nordicsemi.no> | Fri Oct 02 11:34:19 2020 +0200 |
tree | 7df27169ddb8c066f629bbec166b9464f47e4abb | |
parent | d897bd1e74eb5fe9968d665bbb6e9e1f61f35d18 [diff] |
lib: posix: eventfd: general eventfd improvements The eventfd implementation suffers from various shortcomings and it is not thread safe. This commit addresses the following aspects of eventfd: * make read() and write() atomic in respect to each other * POLLIN after creating eventfd with initval != 0 shall be set * blocking and nonblocking modes shall have the same effect on poll() * add support for POLLOUT Signed-off-by: Rafał Kuźnia <rafal.kuznia@nordicsemi.no>