Searched refs:NO_THREAD (Results 1 – 4 of 4) sorted by relevance
110 if (ctx->hotplug_handler != NO_THREAD) { in libusb_hotplug_scan()193 if (ctx->hotplug_handler == NO_THREAD) { in libusb_hotplug_register_callback()196 ctx->hotplug_handler = NO_THREAD; in libusb_hotplug_register_callback()
244 err = (ctx->ctx_handler != NO_THREAD); in libusb_try_lock_events()258 if (ctx->ctx_handler == NO_THREAD) in libusb_lock_events()267 ctx->ctx_handler = NO_THREAD; in libusb_unlock_events()284 return (ctx->ctx_handler != NO_THREAD); in libusb_event_handler_active()
99 #define NO_THREAD ((pthread_t)-1) macro
153 ctx->ctx_handler = NO_THREAD; in libusb_init()154 ctx->hotplug_handler = NO_THREAD; in libusb_init()194 if (ctx->hotplug_handler != NO_THREAD) { in libusb_exit()200 ctx->hotplug_handler = NO_THREAD; in libusb_exit()