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.
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.
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.