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

Unified Diff: device/usb/usb_context.cc

Issue 1165223004: Introduce the devices Mojo app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/usb/usb_context.cc
diff --git a/device/usb/usb_context.cc b/device/usb/usb_context.cc
index 7661469d294911994d8fb4b83332fb6fe267b2af..99b76ab34be140118378b95d126891e4db480709 100644
--- a/device/usb/usb_context.cc
+++ b/device/usb/usb_context.cc
@@ -63,6 +63,7 @@ void UsbContext::UsbEventHandler::ThreadMain() {
void UsbContext::UsbEventHandler::Stop() {
base::subtle::Release_Store(&running_, 0);
libusb_interrupt_handle_event(context_);
+ base::PlatformThread::Join(thread_handle_);
}
UsbContext::UsbContext(PlatformUsbContext context) : context_(context) {
« device/usb/device_manager_impl.cc ('K') | « device/usb/public/cpp/device_manager_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698