Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 43) sorted by relevance

12

/libuv/test/
H A Dtest-thread.c111 static void do_work(void* arg) { in do_work() argument
116 struct test_thread* thread = arg; in do_work()
140 static void thread_entry(void* arg) { in thread_entry() argument
141 ASSERT_PTR_EQ(arg, (void *) 42); in thread_entry()
192 static void tls_thread(void* arg) { in tls_thread() argument
194 uv_key_set(&tls_key, arg); in tls_thread()
195 ASSERT_PTR_EQ(arg, uv_key_get(&tls_key)); in tls_thread()
217 static void thread_check_stack(void* arg) { in thread_check_stack() argument
220 expected = arg == NULL ? 0 : ((uv_thread_options_t*)arg)->stack_size; in thread_check_stack()
236 expected = arg == NULL ? 0 : ((uv_thread_options_t*)arg)->stack_size; in thread_check_stack()
H A Dbenchmark-pound.c36 typedef void (*setup_fn)(int num, void* arg);
38 typedef int (*connect_fn)(int num, make_connect_fn make_connect, void* arg);
177 static void tcp_do_setup(int num, void* arg) { in tcp_do_setup() argument
186 static void pipe_do_setup(int num, void* arg) { in pipe_do_setup() argument
247 static int tcp_do_connect(int num, make_connect_fn make_connect, void* arg) { in tcp_do_connect() argument
259 static int pipe_do_connect(int num, make_connect_fn make_connect, void* arg) { in pipe_do_connect() argument
276 void* arg) { in pound_it() argument
290 do_setup(concurrency, arg); in pound_it()
292 r = do_connect(concurrency, make_connect, arg); in pound_it()
H A Drunner-unix.c59 char* arg; in notify_parent_process() local
62 arg = getenv("UV_TEST_RUNNER_FD"); in notify_parent_process()
63 if (arg == NULL) in notify_parent_process()
66 fd = atoi(arg); in notify_parent_process()
88 const char* arg; in process_start() local
96 arg = getenv("UV_USE_VALGRIND"); in process_start()
102 if (is_helper == 0 && arg != NULL && atoi(arg) != 0) { in process_start()
H A Dtest-process-title-threadsafe.c41 static void getter_thread_body(void* arg) { in getter_thread_body() argument
46 getter_sem = arg; in getter_thread_body()
69 static void setter_thread_body(void* arg) { in setter_thread_body() argument
H A Dbenchmark-thread.c33 static void thread_entry(void* arg) { in thread_entry() argument
34 ASSERT_PTR_EQ(arg, (void *) 42); in thread_entry()
H A Dtest-thread-equal.c28 static void check_thread(void* arg) { in check_thread() argument
29 uv_thread_t *thread_id = arg; in check_thread()
H A Dtest-walk-handles.c33 static void walk_cb(uv_handle_t* handle, void* arg) { in walk_cb() argument
34 ASSERT_PTR_EQ(arg, (void*)magic_cookie); in walk_cb()
H A Dbenchmark-async-pummel.c53 static void pummel(void* arg) { in pummel() argument
54 uv_async_t* handle = (uv_async_t*) arg; in pummel()
H A Dtest-semaphore.c36 static void worker(void* arg) { in worker() argument
37 worker_config* c = arg; in worker()
H A Dtest-pipe-set-non-blocking.c29 static void thread_main(void* arg) { in thread_main() argument
39 ctx = arg; in thread_main()
H A Dbenchmark-async.c67 static void worker(void* arg) { in worker() argument
68 struct ctx* ctx = arg; in worker()
H A Dtest-thread-affinity.c29 static void check_affinity(void* arg) { in check_affinity() argument
35 cpumask = (char*)arg; in check_affinity()
H A Dtest-barrier.c37 static void worker(void* arg) { in worker() argument
38 worker_config* c = arg; in worker()
H A Dtest-condvar.c74 static void worker(void* arg) { in worker() argument
75 worker_config* c = arg; in worker()
H A Dtest-embed.c36 static void thread_main(void* arg) { in thread_main() argument
H A Dtest-tcp-reuseport.c149 static void run_event_loop(void* arg) { in run_event_loop() argument
153 uv_loop_t* loop = (uv_loop_t*) arg; in run_event_loop()
H A Dtest-eintr-handling.c49 static void thread_main(void* arg) { in thread_main() argument
/libuv/docs/code/thread-create/
H A Dmain.c5 void hare(void *arg) { in hare() argument
6 int tracklen = *((int *) arg); in hare()
15 void tortoise(void *arg) { in tortoise() argument
16 int tracklen = *((int *) arg); in tortoise()
/libuv/src/win/
H A Dthread.c69 void (*entry)(void* arg);
70 void* arg; member
75 static UINT __stdcall uv__thread_start(void* arg) { in uv__thread_start() argument
79 ctx_p = arg; in uv__thread_start()
86 ctx.entry(ctx.arg); in uv__thread_start()
92 int uv_thread_create(uv_thread_t *tid, void (*entry)(void *arg), void *arg) { in uv_thread_create() argument
95 return uv_thread_create_ex(tid, &params, entry, arg); in uv_thread_create()
100 void (*entry)(void *arg), in uv_thread_create_ex() argument
101 void *arg) { in uv_thread_create_ex()
127 ctx->arg = arg; in uv_thread_create_ex()
H A Ddl.c93 DWORD_PTR arg; in uv__dlerror() local
122 arg = (DWORD_PTR) filename; in uv__dlerror()
127 0, 0, (LPSTR) &lib->errmsg, 0, (va_list*) &arg); in uv__dlerror()
H A Dtty.c1412 short arg = argv[i]; in uv__tty_set_style() local
1414 if (arg == 0) { in uv__tty_set_style()
1422 } else if (arg == 1) { in uv__tty_set_style()
1426 } else if (arg == 2) { in uv__tty_set_style()
1431 } else if (arg == 5) { in uv__tty_set_style()
1435 } else if (arg == 7) { in uv__tty_set_style()
1439 } else if (arg == 21 || arg == 22) { in uv__tty_set_style()
1451 } else if (arg >= 30 && arg <= 37) { in uv__tty_set_style()
1460 } else if (arg >= 40 && arg <= 47) { in uv__tty_set_style()
1469 } else if (arg >= 90 && arg <= 97) { in uv__tty_set_style()
[all …]
H A Dprocess.c522 char** arg; in make_program_args() local
532 for (arg = args; *arg; arg++) { in make_program_args()
535 arg_len = uv_wtf8_length_as_utf16(*arg); in make_program_args()
566 for (arg = args; *arg; arg++) { in make_program_args()
570 arg_len = uv_wtf8_length_as_utf16(*arg); in make_program_args()
573 uv_wtf8_to_utf16(*arg, temp_buffer, arg_len); in make_program_args()
584 *pos++ = *(arg + 1) ? L' ' : L'\0'; in make_program_args()
/libuv/src/unix/
H A Dthread.c123 int uv_thread_create(uv_thread_t *tid, void (*entry)(void *arg), void *arg) { in uv_thread_create() argument
126 return uv_thread_create_ex(tid, &params, entry, arg); in uv_thread_create()
131 void (*entry)(void *arg), in uv_thread_create_ex() argument
132 void *arg) { in uv_thread_create_ex()
172 err = pthread_create(tid, attr, f.out, arg); in uv_thread_create_ex()
H A Dfsevents.c106 static void uv__cf_loop_cb(void* arg);
107 static void* uv__cf_loop_runner(void* arg);
705 static void* uv__cf_loop_runner(void* arg) { in uv__cf_loop_runner() argument
709 loop = arg; in uv__cf_loop_runner()
731 static void uv__cf_loop_cb(void* arg) { in uv__cf_loop_cb() argument
738 loop = arg; in uv__cf_loop_cb()
/libuv/src/
H A Dthreadpool.c57 static void worker(void* arg) { in worker() argument
62 uv_sem_post((uv_sem_t*) arg); in worker()
63 arg = NULL; in worker()

Completed in 52 milliseconds

12