Searched refs:hotplug_lock (Results 1 – 2 of 2) sorted by relevance
41 #define HOTPLUG_LOCK(ctx) pthread_mutex_lock(&(ctx)->hotplug_lock)42 #define HOTPLUG_UNLOCK(ctx) pthread_mutex_unlock(&(ctx)->hotplug_lock)102 pthread_mutex_t hotplug_lock; member
159 if (pthread_mutex_init(&ctx->hotplug_lock, NULL) != 0) { in libusb_init()166 pthread_mutex_destroy(&ctx->hotplug_lock); in libusb_init()172 pthread_mutex_destroy(&ctx->hotplug_lock); in libusb_init()179 pthread_mutex_destroy(&ctx->hotplug_lock); in libusb_init()192 pthread_mutex_destroy(&ctx->hotplug_lock); in libusb_init()245 pthread_mutex_destroy(&ctx->hotplug_lock); in libusb_exit()