diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2015-10-26 14:11:53 +0100 |
---|---|---|
committer | Nathan Hjelm <hjelmn@me.com> | 2016-08-17 12:52:40 -0600 |
commit | a5302ff86db391e6797a32693c242ddade5a09c2 (patch) | |
tree | 26d3f89d9dfa8ea65e9570e70357b3d45091d88c /libusb/os/threads_windows.h | |
parent | 2682e21d3d7e1e5ebd6dfe07f193efe48caa3e14 (diff) | |
download | libusb-a5302ff86db391e6797a32693c242ddade5a09c2.tar.gz |
core: Change event handling lock to traditional (non-recursive) type
The event handling lock was previously required to be of the recursive
type because the libusb_close() path requires the lock and may be
called by a thread that is handling events (e.g. from within a
transfer or hotplug callback). With commit 960a6e75, it is possible to
determine whether the current function is being called from an event
handling context, thus the recursive lock type is no longer necessary.
References:
* http://libusb.org/ticket/82
* 74282582cc879f091ad1d847411337bc3fa78a2b
* c775c2f43037cd235b65410583179195e25f9c4a
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
[hdegoede@redhat.com: rebase on top of current master]
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'libusb/os/threads_windows.h')
-rw-r--r-- | libusb/os/threads_windows.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libusb/os/threads_windows.h b/libusb/os/threads_windows.h index 8b7faec..e97ee78 100644 --- a/libusb/os/threads_windows.h +++ b/libusb/os/threads_windows.h @@ -71,9 +71,6 @@ void *usbi_tls_key_get(usbi_tls_key_t key); int usbi_tls_key_set(usbi_tls_key_t key, void *value); int usbi_tls_key_delete(usbi_tls_key_t key); -// all Windows mutexes are recursive -#define usbi_mutex_init_recursive usbi_mutex_init - int usbi_get_tid(void); #endif /* LIBUSB_THREADS_WINDOWS_H */ |