MIRA
|
Implementation of the LockPolicy that is used by the Singleton template. More...
#include <utils/Singleton.h>
Classes | |
struct | Volatile |
Public Types | |
typedef boost::mutex | Mutex |
typedef boost::mutex::scoped_lock | Lock |
Implementation of the LockPolicy that is used by the Singleton template.
This policy locks the creation of the singleton, making it thread-safe. Internally, this policy causes the declaration of the internal instance pointer to be "volatile" which may result in minor performance penalties when accessing the singleton instance.
typedef boost::mutex Mutex |
typedef boost::mutex::scoped_lock Lock |