Lines Matching refs:b
92 barrier_data b; variable
93 b.worker_threads = 0;
94 b.full_threads = threads-1;
95 for(int i = 0; i < b.full_threads; i++)
96 tg.run([&b]{
97 std::unique_lock<std::mutex> lock(b.m);
98 if(++b.worker_threads >= b.full_threads)
99 b.event.notify_all();
100 else while(b.worker_threads < b.full_threads)
101 b.event.wait(lock);
103 std::unique_lock<std::mutex> lock(b.m);
104 b.event.wait(lock);