Searched refs:done_threads (Results 1 – 2 of 2) sorted by relevance
110 static _Atomic unsigned int done_threads; variable123 if (atomic_fetch_add(&done_threads, 1) == num_threads - 1) { in thread_fn()225 done_threads = 0; in run_yielding_test()
850 uint32_t done_threads; in worker_thread() local851 done_threads = atomic_fetch_add_explicit(&g_done_threads, 1, memory_order_relaxed) + 1; in worker_thread()853 debug_log("Thread %p new value is %d, iteration %d\n", pthread_self(), done_threads, i); in worker_thread()