Searched refs:worker (Results 1 – 10 of 10) sorted by relevance
/libuv/docs/code/multi-echo-server/ |
H A D | main.c | 42 struct child_worker *worker = &workers[round_robin_counter]; in on_new_connection() local 75 struct child_worker *worker = &workers[cpu_count]; in setup_workers() local 76 uv_pipe_init(loop, &worker->pipe, 1); in setup_workers() 80 child_stdio[0].data.stream = (uv_stream_t*) &worker->pipe; in setup_workers() 85 worker->options.stdio = child_stdio; in setup_workers() 86 worker->options.stdio_count = 3; in setup_workers() 88 worker->options.exit_cb = close_process_handle; in setup_workers() 89 worker->options.file = args[0]; in setup_workers() 90 worker->options.args = args; in setup_workers() 92 uv_spawn(loop, &worker->req, &worker->options); in setup_workers() [all …]
|
/libuv/test/ |
H A D | test-condvar.c | 74 static void worker(void* arg) { in worker() function 133 ASSERT_OK(uv_thread_create(&thread, worker, &wc)); in TEST_IMPL() 152 ASSERT_OK(uv_thread_create(&thread, worker, &wc)); in TEST_IMPL() 197 ASSERT_OK(uv_thread_create(&thread, worker, &wc)); in TEST_IMPL() 216 ASSERT_OK(uv_thread_create(&thread, worker, &wc)); in TEST_IMPL()
|
H A D | test-barrier.c | 37 static void worker(void* arg) { in worker() function 57 ASSERT_OK(uv_thread_create(&thread, worker, &wc)); in TEST_IMPL() 80 ASSERT_OK(uv_thread_create(&thread, worker, &wc)); in TEST_IMPL() 102 ASSERT_OK(uv_thread_create(&thread, worker, &wc)); in TEST_IMPL()
|
H A D | test-semaphore.c | 36 static void worker(void* arg) { in worker() function 58 ASSERT_OK(uv_thread_create(&thread, worker, &wc)); in TEST_IMPL() 83 ASSERT_OK(uv_thread_create(&thread, worker, &wc)); in TEST_IMPL()
|
H A D | benchmark-async.c | 67 static void worker(void* arg) { in worker() function 93 ASSERT_OK(uv_thread_create(&ctx->thread, worker, ctx)); in test_async()
|
/libuv/docs/src/guide/ |
H A D | processes.rst | 333 servers, worker processes and other ways to make optimum use of CPU. libuv only 337 clients to worker processes in a round-robin fashion. This program is a bit 341 The worker process is quite simple, since the file-descriptor is handed over to 344 .. rubric:: multi-echo-server/worker.c 345 .. literalinclude:: ../../code/multi-echo-server/worker.c 355 standard input of the worker, we connect the pipe to ``stdin`` using 358 .. rubric:: multi-echo-server/worker.c 359 .. literalinclude:: ../../code/multi-echo-server/worker.c 372 the worker does standard echo server stuff. 403 worker in the round-robin.
|
H A D | utilities.rst | 134 Passing data to worker thread 138 to the worker thread. The solution is to use a ``struct`` and set
|
H A D | basics.rst | 66 processor, libuv and OSes will usually run background/worker threads and/or
|
H A D | threads.rst | 287 that have already started executing. Such a worker could periodically check
|
/libuv/src/ |
H A D | threadpool.c | 57 static void worker(void* arg) { in worker() function 234 if (uv_thread_create_ex(threads + i, &config, worker, &sem)) in init_threads()
|
Completed in 13 milliseconds