Lines Matching refs:pcb_data
91 struct async_callback_struct* pcb_data = (struct async_callback_struct*)arg; in async_callback_thread_fct() local
93 ret = pthread_mutex_lock(&pcb_data->mutex); in async_callback_thread_fct()
100 if (pcb_data->event_pending == 0) { in async_callback_thread_fct()
101 ret = pthread_cond_wait(&pcb_data->cond, &pcb_data->mutex); in async_callback_thread_fct()
108 if (pcb_data->event_pending) { in async_callback_thread_fct()
109 nfc_event_t event = pcb_data->event; in async_callback_thread_fct()
110 nfc_status_t event_status = pcb_data->event_status; in async_callback_thread_fct()
111 int ending = pcb_data->stop_thread; in async_callback_thread_fct()
112 pcb_data->event_pending = 0; in async_callback_thread_fct()
113 ret = pthread_cond_signal(&pcb_data->cond); in async_callback_thread_fct()
119 pcb_data->thread_running = 0; in async_callback_thread_fct()
121 ret = pthread_mutex_unlock(&pcb_data->mutex); in async_callback_thread_fct()
131 ret = pthread_mutex_lock(&pcb_data->mutex); in async_callback_thread_fct()
137 } while (pcb_data->stop_thread == 0 || pcb_data->event_pending); in async_callback_thread_fct()
139 ret = pthread_mutex_unlock(&pcb_data->mutex); in async_callback_thread_fct()
145 pcb_data->thread_running = 0; in async_callback_thread_fct()