Searched refs:NO_THREAD (Results 1 – 4 of 4) sorted by relevance
251 * - libusb_exit has been called as it sets NO_THREAD in libusb_hotplug_deregister_callback() 270 if (ctx->hotplug_handler == NO_THREAD) {367 if (ctx->hotplug_handler == NO_THREAD) {372 ctx->hotplug_handler = NO_THREAD;
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()
121 #define NO_THREAD ((pthread_t)-1)105 #define NO_THREAD global() macro
234 ctx->ctx_handler = NO_THREAD; in libusb_init_context() 235 ctx->hotplug_handler = NO_THREAD; in libusb_init_context() 277 if (ctx->hotplug_handler != NO_THREAD) { in libusb_exit() 283 ctx->hotplug_handler = NO_THREAD; in libusb_exit()