Lines Matching refs:b
45 Barrier b = BARRIER_NULL; \
48 assert_se(barrier_create(&b) >= 0); \
49 assert_se(b.me > 0); \
50 assert_se(b.them > 0); \
51 assert_se(b.pipe[0] > 0); \
52 assert_se(b.pipe[1] > 0); \
57 barrier_set_role(&b, BARRIER_CHILD); \
65 barrier_set_role(&b, BARRIER_PARENT); \
70 barrier_destroy(&b); \
107 assert_se(barrier_place(&b));
109 assert_se(barrier_sync(&b));
114 assert_se(barrier_place(&b));
115 assert_se(barrier_sync(&b));
130 assert_se(barrier_wait_next(&b));
131 assert_se(barrier_place(&b));
132 assert_se(barrier_sync(&b));
137 assert_se(barrier_place(&b));
138 assert_se(barrier_sync(&b));
156 assert_se(barrier_wait_next(&b));
157 assert_se(barrier_wait_next(&b));
163 assert_se(barrier_place(&b));
164 assert_se(barrier_place(&b));
179 assert_se(barrier_wait_next(&b));
180 assert_se(barrier_place(&b));
181 assert_se(barrier_place(&b));
182 assert_se(barrier_wait_next(&b));
188 assert_se(barrier_place(&b));
189 assert_se(barrier_place(&b));
204 assert_se(barrier_wait_next(&b));
205 assert_se(barrier_sync_next(&b));
210 assert_se(barrier_place(&b));
211 assert_se(barrier_place(&b));
225 assert_se(barrier_wait_next(&b));
226 assert_se(barrier_place(&b));
227 assert_se(barrier_place(&b));
228 assert_se(barrier_sync_next(&b));
233 assert_se(barrier_place(&b));
234 assert_se(barrier_place(&b));
246 assert_se(barrier_sync_next(&b));
247 assert_se(barrier_sync(&b));
248 assert_se(barrier_place(&b));
249 assert_se(barrier_place(&b));
250 assert_se(barrier_sync_next(&b));
251 assert_se(barrier_sync_next(&b));
252 assert_se(barrier_sync(&b));
258 assert_se(barrier_place(&b));
259 assert_se(barrier_place(&b));
260 assert_se(barrier_sync(&b));
272 assert_se(barrier_place(&b));
273 assert_se(barrier_sync_next(&b));
290 assert_se(barrier_place(&b));
291 assert_se(!barrier_sync_next(&b));
295 assert_se(barrier_abort(&b));
306 assert_se(barrier_wait_abortion(&b));
310 assert_se(barrier_abort(&b));
322 assert_se(barrier_wait_abortion(&b));
338 assert_se(barrier_abort(&b));
339 assert_se(!barrier_wait_abortion(&b));
343 assert_se(barrier_abort(&b));
354 assert_se(barrier_abort(&b));
355 assert_se(!barrier_wait_abortion(&b));
375 assert_se(barrier_place(&b));
376 assert_se(!barrier_sync(&b));
393 assert_se(barrier_place(&b));
394 assert_se(!barrier_sync(&b));
412 assert_se(barrier_wait_next(&b));
413 assert_se(barrier_sync_next(&b));
414 assert_se(barrier_place(&b));
415 assert_se(barrier_sync_next(&b));
416 assert_se(barrier_place(&b));
417 assert_se(!barrier_sync_next(&b));
421 assert_se(barrier_place(&b));