Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: GR-PEACH_HVC-P2_sample_client mbed-os-storage-access GR-PEACH_Digital_Signage GR-PEACH_Audio_Playback_Sample ... more
Fork of USBHost by
Diff: USBHost/USBHost.h
- Revision:
- 23:759ec18ee1a7
- Parent:
- 16:ab8c9118524e
- Child:
- 24:868cbfe611a7
diff -r f4191d3837dc -r 759ec18ee1a7 USBHost/USBHost.h
--- a/USBHost/USBHost.h Fri Jan 31 10:30:17 2014 +0000
+++ b/USBHost/USBHost.h Fri Mar 07 16:00:46 2014 +0000
@@ -187,6 +187,18 @@
}
}
+ /**
+ * Instantiate to protect USB thread from accessing shared objects (USBConnectedDevices and Interfaces)
+ */
+ class Lock
+ {
+ public:
+ Lock(USBHost* pHost);
+ ~Lock();
+ private:
+ USBHost* m_pHost;
+ };
+
friend class USBHostHub;
protected:
