Searched refs:hotplug_lock (Results 1 - 2 of 2) sorted by relevance

/freebsd-11-stable/lib/libusb/
H A Dlibusb10.h39 #define HOTPLUG_LOCK(ctx) pthread_mutex_lock(&(ctx)->hotplug_lock)
40 #define HOTPLUG_UNLOCK(ctx) pthread_mutex_unlock(&(ctx)->hotplug_lock)
100 pthread_mutex_t hotplug_lock; member in struct:libusb_context
H A Dlibusb10.c172 if (pthread_mutex_init(&ctx->hotplug_lock, NULL) != 0) {
179 pthread_mutex_destroy(&ctx->hotplug_lock);
185 pthread_mutex_destroy(&ctx->hotplug_lock);
192 pthread_mutex_destroy(&ctx->hotplug_lock);
205 pthread_mutex_destroy(&ctx->hotplug_lock);
258 pthread_mutex_destroy(&ctx->hotplug_lock);

Completed in 63 milliseconds