Lines Matching refs:flag
30 typedef void (*signal_func)(struct worker_config* c, int* flag);
31 typedef int (*wait_func)(struct worker_config* c, const int* flag);
82 static void condvar_signal(worker_config* c, int* flag) { in condvar_signal() argument
90 ASSERT_OK(*flag); in condvar_signal()
91 *flag = 1; in condvar_signal()
106 static int condvar_wait(worker_config* c, const int* flag) { in condvar_wait() argument
115 } while (*flag == 0); in condvar_wait()
116 ASSERT_EQ(1, *flag); in condvar_wait()
166 static int condvar_timedwait(worker_config* c, const int* flag) { in condvar_timedwait() argument
180 } while (*flag == 0); in condvar_timedwait()
181 ASSERT_EQ(1, *flag); in condvar_timedwait()