Searched refs:NO_THREAD (Results 1 – 4 of 4) sorted by relevance
124 if (ctx->hotplug_handler != NO_THREAD) { in libusb_hotplug_scan()203 if (ctx->hotplug_handler == NO_THREAD) { in libusb_hotplug_register_callback()208 ctx->hotplug_handler = NO_THREAD; in libusb_hotplug_register_callback()
253 err = (ctx->ctx_handler != NO_THREAD); in libusb_try_lock_events()267 if (ctx->ctx_handler == NO_THREAD) in libusb_lock_events()276 ctx->ctx_handler = NO_THREAD; in libusb_unlock_events()293 return (ctx->ctx_handler != NO_THREAD); in libusb_event_handler_active()323 if (ctx->ctx_handler == NO_THREAD) in libusb_wait_for_event()344 if (ctx->ctx_handler == NO_THREAD) in libusb_wait_for_event()
105 #define NO_THREAD ((pthread_t)-1) macro
233 ctx->ctx_handler = NO_THREAD; in libusb_init_context()234 ctx->hotplug_handler = NO_THREAD; in libusb_init_context()276 if (ctx->hotplug_handler != NO_THREAD) { in libusb_exit()282 ctx->hotplug_handler = NO_THREAD; in libusb_exit()