Home
last modified time | relevance | path

Searched refs:worker (Results 1 – 10 of 10) sorted by relevance

/libuv/docs/code/multi-echo-server/
H A Dmain.c42 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 Dtest-condvar.c74 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 Dtest-barrier.c37 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 Dtest-semaphore.c36 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 Dbenchmark-async.c67 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 Dprocesses.rst333 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 Dutilities.rst134 Passing data to worker thread
138 to the worker thread. The solution is to use a ``struct`` and set
H A Dbasics.rst66 processor, libuv and OSes will usually run background/worker threads and/or
H A Dthreads.rst287 that have already started executing. Such a worker could periodically check
/libuv/src/
H A Dthreadpool.c57 static void worker(void* arg) { in worker() function
234 if (uv_thread_create_ex(threads + i, &config, worker, &sem)) in init_threads()

Completed in 21 milliseconds