Home
last modified time | relevance | path

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

/libuv/test/
H A Dtest-barrier.c29 uv_barrier_t barrier; member
63 uv_barrier_destroy(&wc.barrier); in TEST_IMPL()
85 uv_barrier_destroy(&wc.barrier); in TEST_IMPL()
116 uv_barrier_t* barrier; in serial_worker() local
119 barrier = data; in serial_worker()
121 uv_barrier_wait(barrier); in serial_worker()
123 uv_barrier_destroy(barrier); in serial_worker()
133 uv_barrier_t barrier; in TEST_IMPL() local
142 uv_barrier_wait(&barrier); in TEST_IMPL()
154 uv_barrier_t barrier; in TEST_IMPL() local
[all …]
H A Dtest-embed.c33 static uv_barrier_t barrier; variable
37 ASSERT_LE(0, uv_barrier_wait(&barrier)); in thread_main()
54 ASSERT_OK(uv_barrier_init(&barrier, 2)); in TEST_IMPL()
56 ASSERT_LE(0, uv_barrier_wait(&barrier)); in TEST_IMPL()
75 uv_barrier_destroy(&barrier); in TEST_IMPL()
H A Dtest-pipe-set-non-blocking.c25 uv_barrier_t barrier; member
40 uv_barrier_wait(&ctx->barrier); in thread_main()
87 ASSERT_OK(uv_barrier_init(&ctx.barrier, 2)); in TEST_IMPL()
89 uv_barrier_wait(&ctx.barrier); in TEST_IMPL()
127 uv_barrier_destroy(&ctx.barrier); in TEST_IMPL()
H A Dtest-eintr-handling.c45 uv_barrier_t barrier; member
/libuv/src/
H A Dthread-common.c42 b = barrier; in uv_barrier_init()
44 if (barrier == NULL || count == 0) in uv_barrier_init()
49 if (barrier == NULL || count == 0) in uv_barrier_init()
71 barrier->b = b; in uv_barrier_init()
89 b = barrier; in uv_barrier_wait()
93 if (barrier == NULL || barrier->b == NULL) in uv_barrier_wait()
96 b = barrier->b; in uv_barrier_wait()
126 b = barrier; in uv_barrier_destroy()
129 b = barrier->b; in uv_barrier_destroy()
146 uv__free(barrier->b); in uv_barrier_destroy()
[all …]
/libuv/docs/src/
H A Dthreading.rst247 if (uv_barrier_wait(&barrier) > 0)
248 uv_barrier_destroy(&barrier);
250 .. c:function:: int uv_barrier_init(uv_barrier_t* barrier, unsigned int count)
251 .. c:function:: void uv_barrier_destroy(uv_barrier_t* barrier)
252 .. c:function:: int uv_barrier_wait(uv_barrier_t* barrier)
/libuv/include/
H A Duv.h1852 UV_EXTERN int uv_barrier_init(uv_barrier_t* barrier, unsigned int count);
1853 UV_EXTERN void uv_barrier_destroy(uv_barrier_t* barrier);
1854 UV_EXTERN int uv_barrier_wait(uv_barrier_t* barrier);
/libuv/
H A DMakefile.am161 test/test-barrier.c \
H A DChangeLog717 * barrier: wait for prior out before next in (Jameson Nash)
2381 * openbsd: switch to libuv's barrier implementation (ptlomholt)
2503 * unix: rework thread barrier implementation (Ben Noordhuis)
2505 * aix: switch to libuv's own thread barrier impl (Ben Noordhuis)
2507 * unix: signal done to last thread barrier waiter (Ben Noordhuis)
2974 * win: issue memory barrier in uv_thread_join() (Ben Noordhuis)
3679 * unix: always define pthread barrier fallback pad (Saúl Ibarra Corretgé)
3798 * unix: fix bug in barrier fallback implementation (Kári Tristan Helgason)
5080 * thread: barrier functions (Ben Noordhuis)
H A DCMakeLists.txt535 test/test-barrier.c

Completed in 32 milliseconds