Searched refs:ctx_handler (Results 1 – 3 of 3) sorted by relevance
246 err = (ctx->ctx_handler != NO_THREAD); in libusb_try_lock_events()250 ctx->ctx_handler = pthread_self(); in libusb_try_lock_events()260 if (ctx->ctx_handler == NO_THREAD) in libusb_lock_events()261 ctx->ctx_handler = pthread_self(); in libusb_lock_events()268 if (ctx->ctx_handler == pthread_self()) { in libusb_unlock_events()269 ctx->ctx_handler = NO_THREAD; in libusb_unlock_events()286 return (ctx->ctx_handler != NO_THREAD); in libusb_event_handler_active()316 if (ctx->ctx_handler == NO_THREAD) in libusb_wait_for_event()317 ctx->ctx_handler = pthread_self(); in libusb_wait_for_event()337 if (ctx->ctx_handler == NO_THREAD) in libusb_wait_for_event()[all …]
105 pthread_t ctx_handler; member
186 ctx->ctx_handler = NO_THREAD; in libusb_init()