diff options
author | Daniel Drake <dsd@gentoo.org> | 2008-04-18 23:42:40 +0100 |
---|---|---|
committer | Daniel Drake <dsd@gentoo.org> | 2008-04-18 23:42:40 +0100 |
commit | 0efd2efa65d5513e5754d717d522b2c5c45332e2 (patch) | |
tree | 518b01d9f638f99b2cae0078fc0f0546305014ca /libusb/libusbi.h | |
parent | d2ff2b14a15e5099ff0214502944de30f141a39c (diff) | |
download | libusb-0efd2efa65d5513e5754d717d522b2c5c45332e2.tar.gz |
mutex protection for device and handle lists
Diffstat (limited to 'libusb/libusbi.h')
-rw-r--r-- | libusb/libusbi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libusb/libusbi.h b/libusb/libusbi.h index c589ef6..19b28b6 100644 --- a/libusb/libusbi.h +++ b/libusb/libusbi.h @@ -24,6 +24,7 @@ #include <config.h> #include <endian.h> +#include <pthread.h> #include <stddef.h> #include <sys/select.h> #include <time.h> @@ -206,6 +207,7 @@ struct usb_descriptor_header { /* shared data and functions */ extern struct list_head usbi_open_devs; +extern pthread_mutex_t usbi_open_devs_lock; void usbi_io_init(void); |