Modified for BG96
Fork of mbed-dev by
Diff: platform/SingletonPtr.h
- Revision:
- 187:0387e8f68319
- Parent:
- 178:79309dc6340a
--- a/platform/SingletonPtr.h Fri Jun 22 16:45:37 2018 +0100 +++ b/platform/SingletonPtr.h Thu Sep 06 13:40:20 2018 +0100 @@ -56,7 +56,7 @@ inline static void singleton_unlock(void) { #ifdef MBED_CONF_RTOS_PRESENT - osMutexRelease (singleton_mutex_id); + osMutexRelease(singleton_mutex_id); #endif } @@ -80,7 +80,8 @@ * @returns * A pointer to the singleton */ - T* get() { + T *get() + { if (NULL == _ptr) { singleton_lock(); if (NULL == _ptr) { @@ -99,7 +100,8 @@ * @returns * A pointer to the singleton */ - T* operator->() { + T *operator->() + { return get(); }