Lines Matching refs:g

45 bool wait_try_get( tbb::flow::graph &g, tbb::flow::sequencer_node<T> &q, T &value ) {  in wait_try_get()  argument
46 g.wait_for_all(); in wait_try_get()
196 tbb::flow::graph g; in test_parallel() local
198 tbb::flow::sequencer_node<T> s(g, seq_inspector<T>()); in test_parallel()
203 g.wait_for_all(); in test_parallel()
210 g.wait_for_all(); in test_parallel()
212 tbb::flow::sequencer_node<T> s1(g, seq_inspector<T>()); in test_parallel()
213 tbb::flow::sequencer_node<T> s2(g, seq_inspector<T>()); in test_parallel()
214 tbb::flow::sequencer_node<T> s3(g, seq_inspector<T>()); in test_parallel()
223 g.wait_for_all(); in test_parallel()
226 g.wait_for_all(); in test_parallel()
228 g.wait_for_all(); in test_parallel()
230 g.wait_for_all(); in test_parallel()
243 g.wait_for_all(); in test_parallel()
263 tbb::flow::graph g; in test_serial() local
266 tbb::flow::sequencer_node<T> s(g, seq_inspector<T>()); in test_serial()
267 tbb::flow::sequencer_node<T> s2(g, seq_inspector<T>()); in test_serial()
292 CHECK_MESSAGE(wait_try_get( g, s, j ) == true, ""); in test_serial()
297 g.wait_for_all(); in test_serial()
312 CHECK_MESSAGE(wait_try_get( g, s2, j ) == true, ""); in test_serial()
316 g.wait_for_all(); in test_serial()
324 tbb::flow::sequencer_node<T> s3(g, seq_inspector<T>()); in test_serial()
325 tbb::flow::sequencer_node<T> s4(g, seq_inspector<T>()); in test_serial()
326 tbb::flow::sequencer_node<T> s5(g, seq_inspector<T>()); in test_serial()
337 CHECK_MESSAGE(wait_try_get( g, s5, j ) == true, ""); in test_serial()
341 CHECK_MESSAGE( wait_try_get( g, s3, j ) == false, "" ); in test_serial()
342 CHECK_MESSAGE( wait_try_get( g, s4, j ) == false, "" ); in test_serial()
343 CHECK_MESSAGE( wait_try_get( g, s5, j ) == false, "" ); in test_serial()
346 g.wait_for_all(); in test_serial()
349 CHECK_MESSAGE( wait_try_get( g, s4, j ) == false, "" ); in test_serial()
351 CHECK_MESSAGE( wait_try_get( g, s5, j ) == false, "" ); in test_serial()
353 CHECK_MESSAGE( wait_try_get( g, s3, j ) == true, "" ); in test_serial()
360 tbb::flow::sequencer_node<T> s6(g, seq_inspector<T>()); in test_serial()
361 tbb::flow::sequencer_node<T> s7(g, seq_inspector<T>()); in test_serial()
362 tbb::flow::sequencer_node<T> s8(g, seq_inspector<T>()); in test_serial()
373 CHECK_MESSAGE( wait_try_get( g, s8, j ) == true, "" ); in test_serial()
377 CHECK_MESSAGE( wait_try_get( g, s6, j ) == false, "" ); in test_serial()
378 CHECK_MESSAGE( wait_try_get( g, s7, j ) == false, "" ); in test_serial()
379 CHECK_MESSAGE( wait_try_get( g, s8, j ) == false, "" ); in test_serial()
382 g.wait_for_all(); in test_serial()
385 CHECK_MESSAGE( wait_try_get( g, s7, j ) == false, "" ); in test_serial()
387 CHECK_MESSAGE( wait_try_get( g, s8, j ) == false, "" ); in test_serial()
389 CHECK_MESSAGE( wait_try_get( g, s6, j ) == true, "" ); in test_serial()
416 graph g; in test_deduction_guides_common() local
417 broadcast_node<int> br(g); in test_deduction_guides_common()
419 sequencer_node s1(g, body); in test_deduction_guides_common()