Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Issue 19713005: Update libusb 1.0.9 to libusbx 1.0.16 (Closed)

Created:
7 years, 5 months ago by Bei Zhang
Modified:
7 years, 5 months ago
Reviewers:
pfeldman
CC:
chromium-reviews
Visibility:
Public.

Description

Update libusb 1.0.9 to libusbx 1.0.16. libusb 1.0.9 has serious deadlock bugs on Windows. libusbx is the rapid-development version of libusb and will be eventually merged into libusb. BUG=223817 R=pfeldman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212597

Patch Set 1 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+26486 lines, -3715 lines) Patch
M third_party/libusb/README.chromium View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/libusb/libusb.gyp View 4 chunks +33 lines, -33 lines 2 comments Download
M third_party/libusb/src/AUTHORS View 1 chunk +29 lines, -14 lines 0 comments Download
A third_party/libusb/src/ChangeLog View 1 chunk +174 lines, -0 lines 0 comments Download
A third_party/libusb/src/INSTALL_WIN.txt View 1 chunk +73 lines, -0 lines 0 comments Download
M third_party/libusb/src/Makefile.am View 2 chunks +7 lines, -8 lines 0 comments Download
M third_party/libusb/src/NEWS View 1 chunk +2 lines, -65 lines 0 comments Download
M third_party/libusb/src/PORTING View 5 chunks +13 lines, -14 lines 0 comments Download
M third_party/libusb/src/README View 1 chunk +19 lines, -13 lines 0 comments Download
A third_party/libusb/src/README.git View 1 chunk +29 lines, -0 lines 0 comments Download
D third_party/libusb/src/RELEASE-NOTES View 1 chunk +0 lines, -35 lines 0 comments Download
M third_party/libusb/src/THANKS View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/libusb/src/TODO View 1 chunk +2 lines, -9 lines 0 comments Download
M third_party/libusb/src/autogen.sh View 1 chunk +5 lines, -16 lines 0 comments Download
A + third_party/libusb/src/bootstrap.sh View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/libusb/src/configure.ac View 9 chunks +51 lines, -24 lines 0 comments Download
M third_party/libusb/src/doc/Makefile.am View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/libusb/src/doc/doxygen.cfg.in View 6 chunks +17 lines, -23 lines 0 comments Download
A third_party/libusb/src/doc/libusbx.png View Binary file 0 comments Download
M third_party/libusb/src/examples/Makefile.am View 1 chunk +9 lines, -11 lines 0 comments Download
M third_party/libusb/src/examples/dpfp.c View 4 chunks +4 lines, -5 lines 0 comments Download
M third_party/libusb/src/examples/dpfp_threaded.c View 4 chunks +4 lines, -5 lines 0 comments Download
A third_party/libusb/src/examples/ezusb.h View 1 chunk +120 lines, -0 lines 0 comments Download
A third_party/libusb/src/examples/ezusb.c View 1 chunk +796 lines, -0 lines 0 comments Download
A third_party/libusb/src/examples/fxload.c View 1 chunk +287 lines, -0 lines 0 comments Download
A third_party/libusb/src/examples/getopt/getopt.h View 1 chunk +180 lines, -0 lines 0 comments Download
A third_party/libusb/src/examples/getopt/getopt.c View 1 chunk +1060 lines, -0 lines 0 comments Download
A third_party/libusb/src/examples/getopt/getopt1.c View 1 chunk +188 lines, -0 lines 0 comments Download
A third_party/libusb/src/examples/hotplugtest.c View 1 chunk +97 lines, -0 lines 0 comments Download
M third_party/libusb/src/examples/listdevs.c View 4 chunks +14 lines, -7 lines 0 comments Download
A third_party/libusb/src/examples/sam3u_benchmark.c View 1 chunk +193 lines, -0 lines 0 comments Download
A third_party/libusb/src/examples/xusb.c View 1 chunk +1093 lines, -0 lines 0 comments Download
M third_party/libusb/src/libusb-1.0.pc.in View 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/libusb/src/libusb/Makefile.am View 3 chunks +31 lines, -12 lines 0 comments Download
M third_party/libusb/src/libusb/core.c View 53 chunks +595 lines, -242 lines 0 comments Download
M third_party/libusb/src/libusb/descriptor.c View 24 chunks +606 lines, -139 lines 0 comments Download
A third_party/libusb/src/libusb/hotplug.h View 1 chunk +82 lines, -0 lines 0 comments Download
A third_party/libusb/src/libusb/hotplug.c View 1 chunk +320 lines, -0 lines 0 comments Download
M third_party/libusb/src/libusb/interrupt.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libusb/src/libusb/interrupt.c View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/libusb/src/libusb/io.c View 78 chunks +377 lines, -265 lines 0 comments Download
M third_party/libusb/src/libusb/libusb.h View 36 chunks +569 lines, -71 lines 0 comments Download
M third_party/libusb/src/libusb/libusb-1.0.def View 7 chunks +39 lines, -1 line 0 comments Download
M third_party/libusb/src/libusb/libusb-1.0.rc View 2 chunks +9 lines, -4 lines 0 comments Download
M third_party/libusb/src/libusb/libusbi.h View 22 chunks +184 lines, -115 lines 0 comments Download
M third_party/libusb/src/libusb/os/darwin_usb.h View 7 chunks +41 lines, -48 lines 0 comments Download
M third_party/libusb/src/libusb/os/darwin_usb.c View 60 chunks +634 lines, -481 lines 0 comments Download
A third_party/libusb/src/libusb/os/linux_netlink.c View 1 chunk +254 lines, -0 lines 0 comments Download
A third_party/libusb/src/libusb/os/linux_udev.c View 1 chunk +273 lines, -0 lines 0 comments Download
M third_party/libusb/src/libusb/os/linux_usbfs.h View 4 chunks +44 lines, -2 lines 0 comments Download
M third_party/libusb/src/libusb/os/linux_usbfs.c View 43 chunks +709 lines, -579 lines 0 comments Download
M third_party/libusb/src/libusb/os/openbsd_usb.c View 7 chunks +12 lines, -5 lines 0 comments Download
M third_party/libusb/src/libusb/os/poll_posix.h View 1 chunk +2 lines, -1 line 0 comments Download
A third_party/libusb/src/libusb/os/poll_posix.c View 1 chunk +51 lines, -0 lines 0 comments Download
M third_party/libusb/src/libusb/os/poll_windows.h View 5 chunks +14 lines, -4 lines 0 comments Download
M third_party/libusb/src/libusb/os/poll_windows.c View 28 chunks +91 lines, -110 lines 0 comments Download
M third_party/libusb/src/libusb/os/threads_posix.h View 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/libusb/src/libusb/os/threads_posix.c View 4 chunks +31 lines, -11 lines 0 comments Download
M third_party/libusb/src/libusb/os/threads_windows.h View 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/libusb/src/libusb/os/threads_windows.c View 7 chunks +17 lines, -12 lines 0 comments Download
A third_party/libusb/src/libusb/os/wince_usb.h View 1 chunk +131 lines, -0 lines 0 comments Download
A third_party/libusb/src/libusb/os/wince_usb.c View 1 chunk +1015 lines, -0 lines 0 comments Download
A third_party/libusb/src/libusb/os/windows_common.h View 1 chunk +108 lines, -0 lines 0 comments Download
M third_party/libusb/src/libusb/os/windows_usb.h View 13 chunks +421 lines, -111 lines 0 comments Download
M third_party/libusb/src/libusb/os/windows_usb.c View 97 chunks +1805 lines, -407 lines 0 comments Download
A third_party/libusb/src/libusb/strerror.c View 1 chunk +184 lines, -0 lines 0 comments Download
M third_party/libusb/src/libusb/sync.c View 15 chunks +40 lines, -47 lines 0 comments Download
M third_party/libusb/src/libusb/version.h View 2 chunks +2 lines, -2 lines 0 comments Download
A third_party/libusb/src/libusb/version_nano.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/libusb/src/msvc/config.h View 1 chunk +23 lines, -8 lines 0 comments Download
M third_party/libusb/src/msvc/ddk_build.cmd View 5 chunks +87 lines, -18 lines 0 comments Download
A third_party/libusb/src/msvc/errno.h View 1 chunk +102 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/fxload_2010.vcxproj View 1 chunk +170 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/fxload_2010.vcxproj.filters View 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/fxload_2012.vcxproj View 1 chunk +174 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/fxload_2012.vcxproj.filters View 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/fxload_sources View 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/getopt_2005.vcproj View 1 chunk +288 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/getopt_2010.vcxproj View 1 chunk +131 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/getopt_2010.vcxproj.filters View 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/getopt_2012.vcxproj View 1 chunk +135 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/getopt_2012.vcxproj.filters View 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/getopt_sources View 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/hotplugtest_2010.vcxproj View 1 chunk +163 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/hotplugtest_2010.vcxproj.filters View 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/hotplugtest_2012.vcxproj View 1 chunk +167 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/hotplugtest_2012.vcxproj.filters View 1 chunk +14 lines, -0 lines 0 comments Download
A + third_party/libusb/src/msvc/hotplugtest_sources View 2 chunks +4 lines, -3 lines 0 comments Download
D third_party/libusb/src/msvc/libusb.dsw View 1 chunk +0 lines, -56 lines 0 comments Download
M third_party/libusb/src/msvc/libusb_dll.dsp View 1 chunk +194 lines, -190 lines 0 comments Download
A third_party/libusb/src/msvc/libusb_dll_2005.vcproj View 1 chunk +436 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/libusb_dll_2010.vcxproj View 1 chunk +170 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/libusb_dll_2010.vcxproj.filters View 1 chunk +81 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/libusb_dll_2012.vcxproj View 1 chunk +175 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/libusb_dll_2012.vcxproj.filters View 1 chunk +84 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/libusb_dll_wince.vcproj View 1 chunk +1243 lines, -0 lines 0 comments Download
M third_party/libusb/src/msvc/libusb_sources View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/libusb/src/msvc/libusb_static.dsp View 1 chunk +174 lines, -170 lines 0 comments Download
A third_party/libusb/src/msvc/libusb_static_2005.vcproj View 1 chunk +362 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/libusb_static_2010.vcxproj View 1 chunk +156 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/libusb_static_2010.vcxproj.filters View 1 chunk +74 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/libusb_static_2012.vcxproj View 1 chunk +160 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/libusb_static_2012.vcxproj.filters View 1 chunk +74 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/libusb_static_wince.vcproj View 1 chunk +1185 lines, -0 lines 0 comments Download
A + third_party/libusb/src/msvc/libusbx.dsw View 1 chunk +71 lines, -56 lines 0 comments Download
A third_party/libusb/src/msvc/libusbx_2005.sln View 1 chunk +95 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/libusbx_2010.sln View 1 chunk +94 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/libusbx_2012.sln View 1 chunk +94 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/libusbx_wince.sln View 1 chunk +246 lines, -0 lines 0 comments Download
M third_party/libusb/src/msvc/listdevs.dsp View 1 chunk +103 lines, -103 lines 0 comments Download
A third_party/libusb/src/msvc/listdevs_2005.vcproj View 1 chunk +360 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/listdevs_2010.vcxproj View 1 chunk +165 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/listdevs_2010.vcxproj.filters View 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/listdevs_2012.vcxproj View 1 chunk +169 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/listdevs_2012.vcxproj.filters View 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/listdevs_wince.vcproj View 1 chunk +1120 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/missing.h View 1 chunk +32 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/missing.c View 1 chunk +80 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/stress_2005.vcproj View 1 chunk +390 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/stress_2010.vcxproj View 1 chunk +167 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/stress_2010.vcxproj.filters View 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/stress_2012.vcxproj View 1 chunk +171 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/stress_2012.vcxproj.filters View 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/stress_wince.vcproj View 1 chunk +1128 lines, -0 lines 0 comments Download
A + third_party/libusb/src/msvc/xusb.dsp View 1 chunk +102 lines, -103 lines 0 comments Download
A third_party/libusb/src/msvc/xusb_2005.vcproj View 1 chunk +344 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/xusb_2010.vcxproj View 1 chunk +163 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/xusb_2010.vcxproj.filters View 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/xusb_2012.vcxproj View 1 chunk +167 lines, -0 lines 0 comments Download
A third_party/libusb/src/msvc/xusb_2012.vcxproj.filters View 1 chunk +14 lines, -0 lines 0 comments Download
A + third_party/libusb/src/msvc/xusb_sources View 2 chunks +4 lines, -3 lines 0 comments Download
A third_party/libusb/src/msvc/xusb_wince.vcproj View 1 chunk +1120 lines, -0 lines 0 comments Download
A third_party/libusb/src/tests/Makefile.am View 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/libusb/src/tests/libusbx_testlib.h View 1 chunk +107 lines, -0 lines 0 comments Download
A third_party/libusb/src/tests/stress.c View 1 chunk +159 lines, -0 lines 0 comments Download
A third_party/libusb/src/tests/testlib.c View 1 chunk +276 lines, -0 lines 0 comments Download
M third_party/libusb/windows-build.patch View 1 chunk +44 lines, -31 lines 2 comments Download

Messages

Total messages: 6 (0 generated)
Bei Zhang
7 years, 5 months ago (2013-07-19 06:19:10 UTC) #1
pfeldman
I noticed that you are applying this on top of not-yet-committed https://codereview.chromium.org/18593002. I think this ...
7 years, 5 months ago (2013-07-19 06:47:23 UTC) #2
pfeldman
https://codereview.chromium.org/19713005/diff/34011/third_party/libusb/libusb.gyp File third_party/libusb/libusb.gyp (left): https://codereview.chromium.org/19713005/diff/34011/third_party/libusb/libusb.gyp#oldcode19 third_party/libusb/libusb.gyp:19: 'src/libusb/interrupt.c', Oh, I now see that you've already landed ...
7 years, 5 months ago (2013-07-19 08:32:15 UTC) #3
Bei Zhang
On 2013/07/19 06:47:23, pfeldman wrote: > I noticed that you are applying this on top ...
7 years, 5 months ago (2013-07-19 17:01:22 UTC) #4
scheib
Committed patchset #1 manually as r212597.
7 years, 5 months ago (2013-07-19 17:09:12 UTC) #5
pfeldman
7 years, 5 months ago (2013-07-19 18:56:08 UTC) #6
Message was sent while issue was closed.
> Yes, I'm joining the thread (but on UI thread) before shutdown, but the
libusb_handle_events function will block for a minute.

I thought UsbService was per-profile, so you are doing it on switching profiles
too. And you can't join blocking threads on UI thread anyways. You event
dispatching thread should be of type IO and the following check should fail:
https://code.google.com/p/chromium/codesearch#chromium/src/base/threading/pla....
You might have not marked your thread as IO, but it still is logically. I agree
that waiting for a minute is not an option thought, so we need to do both:
interrupt and graceful join.

Powered by Google App Engine
This is Rietveld 408576698