TokTok / c-toxcore

The future of online communications.
https://tox.chat
GNU General Public License v3.0
2.24k stars 283 forks source link

Use libev for the event loop. #339

Open iphydf opened 7 years ago

iphydf commented 7 years ago

We currently have a bunch of platform-dependent code that can be replaced by libev, in particular the timer handling (monotonic clock) and the TCP server epoll code. See http://search.cpan.org/~mlehmann/EV-4.21/libev/ev.pod#The_special_problem_of_being_too_early and other "special problems" for reasons why event loops are hard, and doing our own is a bad idea.

iphydf commented 2 years ago

Low latency API will do this.