mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
Diff: platform/ScopedLock.h
- Revision:
- 187:0387e8f68319
- Parent:
- 184:08ed48f1de7f
- Child:
- 188:bcfe06ba3d64
--- a/platform/ScopedLock.h Fri Jun 22 16:45:37 2018 +0100 +++ b/platform/ScopedLock.h Thu Sep 06 13:40:20 2018 +0100 @@ -65,7 +65,7 @@ * @param lockable reference to the instance of Lockable object * @note lockable object should outlive the ScopedLock object */ - ScopedLock(Lockable& lockable): _lockable(lockable) + ScopedLock(Lockable &lockable): _lockable(lockable) { _lockable.lock(); } @@ -75,7 +75,7 @@ _lockable.unlock(); } private: - Lockable& _lockable; + Lockable &_lockable; }; /**@}*/