mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Revision:
187:0387e8f68319
Parent:
178:79309dc6340a
Child:
188:bcfe06ba3d64
--- 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();
     }