Searched refs:ctx_handler (Results 1 – 3 of 3) sorted by relevance
244 err = (ctx->ctx_handler != NO_THREAD); in libusb_try_lock_events()248 ctx->ctx_handler = pthread_self(); in libusb_try_lock_events()258 if (ctx->ctx_handler == NO_THREAD) in libusb_lock_events()259 ctx->ctx_handler = pthread_self(); in libusb_lock_events()266 if (ctx->ctx_handler == pthread_self()) { in libusb_unlock_events()267 ctx->ctx_handler = NO_THREAD; in libusb_unlock_events()277 return (ctx->ctx_handler == pthread_self()); in libusb_event_handling_ok()284 return (ctx->ctx_handler != NO_THREAD); in libusb_event_handler_active()
84 pthread_t ctx_handler; member
143 ctx->ctx_handler = NO_THREAD; in libusb_init()