Bugzilla – Attachment 126 Details for
Bug 343
USB issues on Windows with e.g. fx2lafw, causes frontend hangs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Acquire event waiters lock while calling libusb_wait_for_event().
lock_event_waiters.patch (text/plain), 432 bytes, created by
Martin Ling
on 2015-03-16 15:32:00 CET
(
hide
)
Description:
Acquire event waiters lock while calling libusb_wait_for_event().
Filename:
MIME Type:
Creator:
Martin Ling
Created:
2015-03-16 15:32:00 CET
Size:
432 bytes
patch
obsolete
>diff --git a/src/usb.c b/src/usb.c >index 9c34b38..353c676 100644 >--- a/src/usb.c >+++ b/src/usb.c >@@ -184,7 +184,9 @@ static gpointer usb_thread(gpointer data) > > while (ctx->usb_thread_running) { > g_mutex_lock(&ctx->usb_mutex); >+ libusb_lock_event_waiters(); > libusb_wait_for_event(ctx->libusb_ctx, NULL); >+ libusb_unlock_event_waiters(); > SetEvent(ctx->usb_event); > g_mutex_unlock(&ctx->usb_mutex); > g_thread_yield();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 343
:
122
|
126
|
127
|
128
|
129