ZBar Bar Code Reader Library  version 0.10
lock.c File Reference
Include dependency graph for lock.c:

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_tproc_waiter_dequeue (zbar_processor_t *proc)
 
static proc_waiter_tproc_waiter_queue (zbar_processor_t *proc)
 
static void proc_waiter_release (zbar_processor_t *proc, proc_waiter_t *waiter)
 

Function Documentation

int _zbar_processor_lock ( zbar_processor_t *  proc)
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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static int proc_wait_unthreaded ( zbar_processor_t *  proc,
proc_waiter_t waiter,
zbar_timer_t timeout 
)
inlinestatic
static proc_waiter_t* proc_waiter_dequeue ( zbar_processor_t *  proc)
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().

Here is the caller graph for this function:

static proc_waiter_t* proc_waiter_queue ( zbar_processor_t *  proc)
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().

Here is the call graph for this function:

Here is the caller graph for this function:

static void proc_waiter_release ( zbar_processor_t *  proc,
proc_waiter_t waiter 
)
inlinestatic

References proc_waiter_s::next.

Referenced by _zbar_processor_lock(), and _zbar_processor_wait().

Here is the caller graph for this function: