-
Notifications
You must be signed in to change notification settings - Fork 505
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
Can AsyncWorker declared in another thread? #526
Comments
No, If you want to wake up the main thread from another thread, you'll have to jury-rig something using |
@bnoordhuis So how can I get the loop? Use |
@XadillaX although it's probably not perfect maybe you can get some ideas from https://github.com/fivdi/epoll/blob/v0.1.16/src/epoll.cc. Search for all occurrences of |
@XadillaX |
@bnoordhuis Thanks! |
For some reason (closed source SDK), I must run some code in another thread because that thread is packaged.
And here's my code:
consume
is called in a new thread via the SDK, and this code throwed a segmentfault.So I'm confused can
AsyncWorker
run in another thread?The text was updated successfully, but these errors were encountered: