diff options
author | Sean McBride <sean@rogue-research.com> | 2011-12-09 13:43:46 -0500 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2012-02-08 15:42:27 +0100 |
commit | 6cf3285a4e0dfaec0fe53b8eb6a9281e3c5bcb6c (patch) | |
tree | d501c49e6f0bc70d9fe0fd8a470224f957572990 | |
parent | 662ced422cf1ffce68753296a81dccf87f3a1c57 (diff) | |
download | libusb-6cf3285a4e0dfaec0fe53b8eb6a9281e3c5bcb6c.tar.gz |
Darwin: Fix incorrect mutex protection of libusb_darwin_acfl global
-rw-r--r-- | libusb/os/darwin_usb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c index 58c4c88..f092562 100644 --- a/libusb/os/darwin_usb.c +++ b/libusb/os/darwin_usb.c @@ -358,11 +358,9 @@ static void *event_thread_main (void *arg0) { usbi_info (ctx, "thread ready to receive events"); - /* let the main thread know about the async runloop */ - libusb_darwin_acfl = runloop; - /* signal the main thread */ pthread_mutex_lock (&libusb_darwin_at_mutex); + libusb_darwin_acfl = runloop; pthread_cond_signal (&libusb_darwin_at_cond); pthread_mutex_unlock (&libusb_darwin_at_mutex); |