Searched refs:ctx_handler (Results 1 – 3 of 3) sorted by relevance
239 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 …]
101 pthread_t ctx_handler; member
178 ctx->ctx_handler = NO_THREAD; in libusb_init()