Home
last modified time | relevance | path

Searched refs:ctx_handler (Results 1 – 3 of 3) sorted by relevance

/freebsd-9-stable/lib/libusb/
Dlibusb10_io.c239 err = (ctx->ctx_handler != NO_THREAD); in libusb_try_lock_events()
243 ctx->ctx_handler = pthread_self(); in libusb_try_lock_events()
253 if (ctx->ctx_handler == NO_THREAD) in libusb_lock_events()
254 ctx->ctx_handler = pthread_self(); in libusb_lock_events()
261 if (ctx->ctx_handler == pthread_self()) { in libusb_unlock_events()
262 ctx->ctx_handler = NO_THREAD; in libusb_unlock_events()
272 return (ctx->ctx_handler == pthread_self()); in libusb_event_handling_ok()
279 return (ctx->ctx_handler != NO_THREAD); in libusb_event_handler_active()
309 if (ctx->ctx_handler == NO_THREAD) in libusb_wait_for_event()
310 ctx->ctx_handler = pthread_self(); in libusb_wait_for_event()
[all …]
Dlibusb10.h101 pthread_t ctx_handler; member
Dlibusb10.c178 ctx->ctx_handler = NO_THREAD; in libusb_init()