
Is a mutex which can be queried via its lock mode. See isLocked(). More...
#include <EuCriticalSection.h>
Public Member Functions | |
| CriticalSection () | |
| CriticalSection (const CriticalSection &rT) | |
| virtual | ~CriticalSection () | 
| bool | isLocked () const | 
| void | lock () | 
| CriticalSection & | operator= (const CriticalSection &rT) | 
| void | unlock () | 
Private Attributes | |
| bool | m_bIsLocked | 
| std::mutex | m_ExclusiveAccessMutex | 
Is a mutex which can be queried via its lock mode. See isLocked().
Example
| eut::CriticalSection::CriticalSection | ( | ) | 
Constructor.
Referenced by CriticalSection(), and operator=().
      
  | 
  virtual | 
Destructor.
| eut::CriticalSection::CriticalSection | ( | const CriticalSection & | rT | ) | 
Copy constructor.
| [in] | rT | The data is copied from this object. | 
References CriticalSection().
| bool eut::CriticalSection::isLocked | ( | ) | const | 
Is the CriticalSection in lock mode?
| void eut::CriticalSection::lock | ( | ) | 
Initiates a CriticalSection.
| CriticalSection & eut::CriticalSection::operator= | ( | const CriticalSection & | rT | ) | 
Assignment operator.
| [in] | rT | The data is transferred from this object. | 
References CriticalSection().
| void eut::CriticalSection::unlock | ( | ) | 
Terminates a CriticalSection.
      
  | 
  private | 
If an CriticalSection blocks access, this attribute is set to true and on release it is set to false again.
      
  | 
  private |