Home
last modified time | relevance | path

Searched refs:ctx_handler (Results 1 – 3 of 3) sorted by relevance

/freebsd-12.1/lib/libusb/
H A Dlibusb10_io.c246 err = (ctx->ctx_handler != NO_THREAD); in libusb_try_lock_events()
250 ctx->ctx_handler = pthread_self(); in libusb_try_lock_events()
260 if (ctx->ctx_handler == NO_THREAD) in libusb_lock_events()
261 ctx->ctx_handler = pthread_self(); in libusb_lock_events()
268 if (ctx->ctx_handler == pthread_self()) { in libusb_unlock_events()
269 ctx->ctx_handler = NO_THREAD; in libusb_unlock_events()
286 return (ctx->ctx_handler != NO_THREAD); in libusb_event_handler_active()
316 if (ctx->ctx_handler == NO_THREAD) in libusb_wait_for_event()
317 ctx->ctx_handler = pthread_self(); in libusb_wait_for_event()
337 if (ctx->ctx_handler == NO_THREAD) in libusb_wait_for_event()
[all …]
H A Dlibusb10.h105 pthread_t ctx_handler; member
H A Dlibusb10.c186 ctx->ctx_handler = NO_THREAD; in libusb_init()