| 250 | |
| 251 | |
| 252 | static void init_once(void) { |
| 253 | #ifndef _WIN32 |
| 254 | /* Re-initialize the threadpool after fork. |
| 255 | * Note that this discards the global mutex and condition as well |
| 256 | * as the work queue. |
| 257 | */ |
| 258 | if (pthread_atfork(NULL, NULL, &reset_once)) |
| 259 | abort(); |
| 260 | #endif |
| 261 | init_threads(); |
| 262 | } |
| 263 | |
| 264 | |
| 265 | void uv__work_submit(uv_loop_t* loop, |
nothing calls this directly
no test coverage detected