-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a callback for when the event loop is ready #1292
Comments
Yes, this is because Lines 1979 to 1990 in 1bc62ce
You can use |
Very interesting. I thought loobreak() was the same as loopexit() with a NULL tv. This did fix my issue. That is good to know though. |
I am creating an HTTP server for an embedded library. I do all the event loop setup on the main thread in a function called
start_server()
, and then in a new thread, I runevent_base_dispatch()
.If my
stop_server()
function which callsevent_base_loopbreak()
, gets called before the event loop is completely setup, my library will sit atpthread_join()
forever becauseevent_base_dispatch()
will never return.I could be missing something here though.
The text was updated successfully, but these errors were encountered: