Lines Matching refs:helper_data
6 static struct helper_data { struct
15 } *helper_data; argument
19 pthread_cond_destroy(&helper_data->cond); in helper_thread_destroy()
20 pthread_mutex_destroy(&helper_data->lock); in helper_thread_destroy()
21 sfree(helper_data); in helper_thread_destroy()
26 if (!helper_data) in helper_reset()
29 pthread_mutex_lock(&helper_data->lock); in helper_reset()
31 if (!helper_data->reset) { in helper_reset()
32 helper_data->reset = 1; in helper_reset()
33 pthread_cond_signal(&helper_data->cond); in helper_reset()
36 pthread_mutex_unlock(&helper_data->lock); in helper_reset()
41 if (!helper_data) in helper_do_stat()
44 pthread_mutex_lock(&helper_data->lock); in helper_do_stat()
45 helper_data->do_stat = 1; in helper_do_stat()
46 pthread_cond_signal(&helper_data->cond); in helper_do_stat()
47 pthread_mutex_unlock(&helper_data->lock); in helper_do_stat()
52 if (!helper_data) in helper_should_exit()
55 return helper_data->exit; in helper_should_exit()
62 pthread_mutex_lock(&helper_data->lock); in helper_thread_exit()
63 helper_data->exit = 1; in helper_thread_exit()
64 pthread_cond_signal(&helper_data->cond); in helper_thread_exit()
65 pthread_mutex_unlock(&helper_data->lock); in helper_thread_exit()
67 pthread_join(helper_data->thread, &ret); in helper_thread_exit()
72 struct helper_data *hd = data; in helper_thread_main()
157 struct helper_data *hd; in helper_thread_create()
179 helper_data = hd; in helper_thread_create()