eminence / udt-rs

UDT bindings for Rust
BSD 2-Clause "Simplified" License
32 stars 12 forks source link

Epoll should be thread safe #10

Open ustulation opened 6 years ago

ustulation commented 6 years ago

The Epoll in the crate seems to do too much and due to that it's not thread safe and highly retricts programming paradigms we can use. A better option would be to just make it a wrapper of upstream UDT and let users handle the optimisation about storing a preallocated vector etc. That shouldn't be the responsibility of this crate.