Can I call event_base_loopbreak
to int event_base_dispatch(struct event_base *base)
that run in another thread?
It's possible to stop event_base_dispatch
with event_base_loopbreak
from another thread. Just enable multithreading support by calling evthread_use_pthreads
or evthread_use_windows_threads
before event_base
created.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With