1

I am a bit confused about the difference between epoll and libevent. Libevent is just an encapsulation of epoll.

Since epoll is considered to be thread-safe (e.g. Is epoll thread-safe? Is epoll_ctl() safe to be called simultaneously from multiple threads?), why does libevent become thread-unsafe?

Which part of libevent breaks its thread-safety?

Adrian Mole
  • 49,934
  • 160
  • 51
  • 83
steamgjk
  • 11
  • 1
  • "why does libevent become thread-unsafe?" - because `libevent` adds a *metric tonne* of new functionality on-top of the POSIX multithreading primitives. – Dai Nov 14 '21 at 15:03

0 Answers0