MIRA
Classes | Public Types | List of all members
MutexLock Struct Reference

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
 

Detailed Description

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.

Member Typedef Documentation

◆ Mutex

typedef boost::mutex Mutex

◆ Lock

typedef boost::mutex::scoped_lock Lock

The documentation for this struct was generated from the following file: