2 ms·
I've done this kind of work in node before. You don't want that. The correct way to do this is to write a native addon that uses libuv to create your own thre
by josh3736 5y ago
I've done this kind of work in node before. You don't want that.
The correct way to do this is to write a native addon that uses libuv to create your own thread (`uv_thread_create`) that does all the interaction with the GUI APIs. You then manage your own message queue to pass messages between your GUI thread and the V8 thread (using `uv_async_send` to invoke a C function that dispatches events from the queue into JS-land).