MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / wait_workers

Method wait_workers

benchmarks/tbb/market.cpp:144–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void market::wait_workers () {
145 // usable for this kind of scheduler only
146 __TBB_ASSERT(governor::needsWaitWorkers(), NULL);
147 // wait till terminating last worker decresed my_ref_count
148 while (__TBB_load_with_acquire(my_ref_count) > 1)
149 __TBB_Yield();
150 __TBB_ASSERT(1 == my_ref_count, NULL);
151 release();
152}
153
154arena& market::create_arena ( unsigned max_num_workers, size_t stack_size ) {
155 market &m = global_market( max_num_workers, stack_size ); // increases market's ref count

Callers 1

cleanup_masterMethod · 0.80

Calls 1

__TBB_load_with_acquireFunction · 0.85

Tested by

no test coverage detected