crosvm/sys_util
Jingkui Wang db36427cd8 sys_util: refactor pollcontext to decouple events from epoll fd.
PollContext is not thread safe while the underlying epoll is thread
safe. This is because PollContext owns EpollEvents, to offer an easy to
use interface. User of this package might want a thread safe version of Epoll.

This CL decouples events from epoll fd, thus providing thread safe epoll.

BUG=None
TEST=cargo build and run

Change-Id: I786b1d186664fdb4a95ce4d3062b044d27b74d40
Reviewed-on: https://chromium-review.googlesource.com/1320429
Commit-Ready: Jingkui Wang <jkwang@google.com>
Tested-by: Jingkui Wang <jkwang@google.com>
Reviewed-by: Zach Reizner <zachr@chromium.org>
2019-01-19 00:14:07 -08:00
..
poll_token_derive build: Restore ability to compile data_model and sys_util in isolation 2019-01-18 00:46:02 -08:00
src sys_util: refactor pollcontext to decouple events from epoll fd. 2019-01-19 00:14:07 -08:00
Cargo.toml build: Restore ability to compile data_model and sys_util in isolation 2019-01-18 00:46:02 -08:00