]> sigrok.org Git - libsigrok.git/commitdiff
Windows usb: Unlock mutex when shutting down wait thread.
authorMartin Ling <redacted>
Sun, 22 Dec 2013 17:10:57 +0000 (17:10 +0000)
committerMartin Ling <redacted>
Sun, 22 Dec 2013 17:10:57 +0000 (17:10 +0000)
hardware/common/usb.c

index f99d82dbd204c67d260a61a3f035accf914e5afa..64f887de91458c7a0ac75ff6c89168dba5170ff8 100644 (file)
@@ -304,6 +304,7 @@ SR_PRIV int usb_source_remove(struct sr_context *ctx)
 {
 #ifdef _WIN32
        ctx->usb_thread_running = FALSE;
+       g_mutex_unlock(&ctx->usb_mutex);
        libusb_unlock_events(ctx->libusb_ctx);
        g_thread_join(ctx->usb_thread);
        g_mutex_clear(&ctx->usb_mutex);