For our model we didn't need it. Either we fork, so only the main
process (single-threaded) uses libevent, or we make worker threads and
only the main thread uses libevent. The workers are synchronized using
mutexes, a semaphore (main -> worker) and a pipe (worker -> main) only.
The only problem here is that you are doing a frivolous lock if the API
is thread safe (such as sys_epoll). Considering that the app is
probably I/O bound anyway this might not matter.
I so suspect the problems of switching to ACE would be worse than
continuing down this route.
Christopher
_______________________________________________
Libevent-users mailing list
[email protected]
http://monkey.org/mailman/listinfo/libevent-users