Lines Matching refs:ctx_handler
254 err = (ctx->ctx_handler != NO_THREAD); in libusb_try_lock_events()
258 ctx->ctx_handler = pthread_self(); in libusb_try_lock_events()
268 if (ctx->ctx_handler == NO_THREAD) in libusb_lock_events()
269 ctx->ctx_handler = pthread_self(); in libusb_lock_events()
276 if (ctx->ctx_handler == pthread_self()) { in libusb_unlock_events()
277 ctx->ctx_handler = NO_THREAD; in libusb_unlock_events()
287 return (ctx->ctx_handler == pthread_self()); in libusb_event_handling_ok()
294 return (ctx->ctx_handler != NO_THREAD); in libusb_event_handler_active()
324 if (ctx->ctx_handler == NO_THREAD) in libusb_wait_for_event()
325 ctx->ctx_handler = pthread_self(); in libusb_wait_for_event()
345 if (ctx->ctx_handler == NO_THREAD) in libusb_wait_for_event()
346 ctx->ctx_handler = pthread_self(); in libusb_wait_for_event()