Lines Matching refs:pcb_data
93 struct async_callback_struct* pcb_data = (struct async_callback_struct*)arg; in async_callback_thread_fct() local
95 ret = pthread_mutex_lock(&pcb_data->mutex); in async_callback_thread_fct()
102 if (pcb_data->event_pending == 0) { in async_callback_thread_fct()
103 ret = pthread_cond_wait(&pcb_data->cond, &pcb_data->mutex); in async_callback_thread_fct()
110 if (pcb_data->event_pending) { in async_callback_thread_fct()
111 nfc_event_t event = pcb_data->event; in async_callback_thread_fct()
112 nfc_status_t event_status = pcb_data->event_status; in async_callback_thread_fct()
113 int ending = pcb_data->stop_thread; in async_callback_thread_fct()
114 pcb_data->event_pending = 0; in async_callback_thread_fct()
115 ret = pthread_cond_signal(&pcb_data->cond); in async_callback_thread_fct()
121 pcb_data->thread_running = 0; in async_callback_thread_fct()
123 ret = pthread_mutex_unlock(&pcb_data->mutex); in async_callback_thread_fct()
133 ret = pthread_mutex_lock(&pcb_data->mutex); in async_callback_thread_fct()
139 } while (pcb_data->stop_thread == 0 || pcb_data->event_pending); in async_callback_thread_fct()
141 ret = pthread_mutex_unlock(&pcb_data->mutex); in async_callback_thread_fct()
147 pcb_data->thread_running = 0; in async_callback_thread_fct()