Mbed OS Reference
Loading...
Searching...
No Matches
SingletonPtr class

Data Structures

struct  SingletonPtr< T >
 Utility class for creating and using a singleton. More...
 

Functions

void singleton_lock (void)
 Lock the singleton mutex. More...
 
void singleton_unlock (void)
 Unlock the singleton mutex. More...
 

Detailed Description

Function Documentation

◆ singleton_lock()

void singleton_lock ( void  )

Lock the singleton mutex.

This function is typically used to provide exclusive access when initializing a global object.

◆ singleton_unlock()

void singleton_unlock ( void  )

Unlock the singleton mutex.

This function is typically used to provide exclusive access when initializing a global object.