joyent/libuv — Issue #246: Support for threads analogous to child_watcher
Author: paddybyers
Created: 2011-11-11 00:08:56+00:00
State: open

I don't know if this is of interest:

https://github.com/paddybyers/libuv/commit/93015792f109180afe14266c51507ed1ced723d6

This was done as part of the work to support multiple node isolates. The requirement was to be able to watch for thread exit in the same way as process exit. The watcher itself is just ev_async, but helper functions also create pipes to pipe stdio in the same way as uv_spawn does for processes.