Home
last modified time | relevance | path

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

/trueos/lib/libusb/
HDlibusb10_io.c244 err = (ctx->ctx_handler != NO_THREAD); in libusb_try_lock_events()
248 ctx->ctx_handler = pthread_self(); in libusb_try_lock_events()
258 if (ctx->ctx_handler == NO_THREAD) in libusb_lock_events()
259 ctx->ctx_handler = pthread_self(); in libusb_lock_events()
266 if (ctx->ctx_handler == pthread_self()) { in libusb_unlock_events()
267 ctx->ctx_handler = NO_THREAD; in libusb_unlock_events()
277 return (ctx->ctx_handler == pthread_self()); in libusb_event_handling_ok()
284 return (ctx->ctx_handler != NO_THREAD); in libusb_event_handler_active()
HDlibusb10.h84 pthread_t ctx_handler; member
HDlibusb10.c143 ctx->ctx_handler = NO_THREAD; in libusb_init()