projects
/
platform
/
upstream
/
libusb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2569980
)
lock flying_transfers during transfer removal
author
Daniel Drake
<dsd@gentoo.org>
Fri, 18 Apr 2008 19:00:31 +0000
(20:00 +0100)
committer
Daniel Drake
<dsd@gentoo.org>
Fri, 18 Apr 2008 22:25:48 +0000
(23:25 +0100)
TODO
patch
|
blob
|
history
libusb/io.c
patch
|
blob
|
history
diff --git
a/TODO
b/TODO
index
bf4d27c
..
7b4b793
100644
(file)
--- a/
TODO
+++ b/
TODO
@@
-1,6
+1,5
@@
for 1.0
=======
-thread safety
error codes
fixme review
review functionality missing over 0.1
diff --git
a/libusb/io.c
b/libusb/io.c
index
8ea9a4b
..
5e0e92f
100644
(file)
--- a/
libusb/io.c
+++ b/
libusb/io.c
@@
-806,7
+806,10
@@
void usbi_handle_transfer_completion(struct usbi_transfer *itransfer,
__USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer);
uint8_t flags;
+ pthread_mutex_lock(&flying_transfers_lock);
list_del(&itransfer->list);
+ pthread_mutex_unlock(&flying_transfers_lock);
+
if (status == LIBUSB_TRANSFER_SILENT_COMPLETION)
return;