Functions | |
int | _zbar_processor_lock (zbar_processor_t *proc) |
void | _zbar_processor_notify (zbar_processor_t *proc, unsigned events) |
int | _zbar_processor_unlock (zbar_processor_t *proc, int all) |
int | _zbar_processor_wait (zbar_processor_t *proc, unsigned events, zbar_timer_t *timeout) |
static int | proc_wait_unthreaded (zbar_processor_t *proc, proc_waiter_t *waiter, zbar_timer_t *timeout) |
static proc_waiter_t * | proc_waiter_dequeue (zbar_processor_t *proc) |
static proc_waiter_t * | proc_waiter_queue (zbar_processor_t *proc) |
static void | proc_waiter_release (zbar_processor_t *proc, proc_waiter_t *waiter) |
int _zbar_processor_lock | ( | zbar_processor_t * | proc | ) |
References _zbar_event_wait(), _zbar_thread_is_self, _zbar_thread_self, proc_waiter_s::notify, proc_waiter_queue(), and proc_waiter_release().
Referenced by _zbar_processor_handle_input(), proc_enter(), proc_video_handler(), x_connection_handler(), and zbar_processor_init().
void _zbar_processor_notify | ( | zbar_processor_t * | proc, |
unsigned | events | ||
) |
References _zbar_event_trigger(), EVENT_CANCELED, proc_waiter_s::events, proc_waiter_s::next, proc_waiter_s::notify, and proc_waiter_dequeue().
Referenced by _zbar_process_image(), and _zbar_processor_handle_input().
int _zbar_processor_unlock | ( | zbar_processor_t * | proc, |
int | all | ||
) |
References _zbar_event_trigger(), _zbar_thread_is_self, proc_waiter_s::notify, and proc_waiter_dequeue().
Referenced by _zbar_processor_handle_input(), _zbar_processor_wait(), proc_leave(), proc_video_handler(), and x_connection_handler().
int _zbar_processor_wait | ( | zbar_processor_t * | proc, |
unsigned | events, | ||
zbar_timer_t * | timeout | ||
) |
References _zbar_event_wait(), _zbar_mutex_lock, _zbar_mutex_unlock, _zbar_processor_unlock(), _zbar_thread_is_self, EVENT_CANCELED, proc_waiter_s::events, EVENTS_PENDING, proc_waiter_s::notify, proc_wait_unthreaded(), proc_waiter_dequeue(), proc_waiter_queue(), and proc_waiter_release().
Referenced by zbar_process_one(), and zbar_processor_user_wait().
|
inlinestatic |
References _zbar_mutex_lock, _zbar_mutex_unlock, _zbar_process_image(), _zbar_processor_input_wait(), _zbar_timer_check(), proc_waiter_s::events, EVENTS_PENDING, MAX_INPUT_BLOCK, zbar_image_destroy(), zbar_video_get_fd(), and zbar_video_next_image().
Referenced by _zbar_processor_wait().
|
inlinestatic |
References EVENTS_PENDING, proc_waiter_s::next, and proc_waiter_s::requester.
Referenced by _zbar_processor_notify(), _zbar_processor_unlock(), and _zbar_processor_wait().
|
inlinestatic |
References _zbar_event_init(), _zbar_thread_self, proc_waiter_s::events, proc_waiter_s::next, proc_waiter_s::notify, and proc_waiter_s::requester.
Referenced by _zbar_processor_lock(), and _zbar_processor_wait().
|
inlinestatic |
References proc_waiter_s::next.
Referenced by _zbar_processor_lock(), and _zbar_processor_wait().