Notify worker thread #4379
-
Here is an example of notifying main thread from worker thread: https://docs.libuv.org/en/v1.x/guide/threads.html#inter-thread-communication. |
Beta Was this translation helpful? Give feedback.
Answered by
bnoordhuis
Apr 2, 2024
Replies: 1 comment 2 replies
-
Not by means of a mechanism similar to Whether that's a good idea is up for debate. The thread pool is fixed size and sleeping in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That could work with the caveat that the event loop should be created on the worker thread, not the main thread and then passed to the worker thread.