|
TcpLib
|
Is a mutex which can be queried via its lock mode. See isLocked(). More...
#include <EuCriticalSection.h>

Public Member Functions | |
| CriticalSection () | |
| virtual | ~CriticalSection () |
| CriticalSection (const CriticalSection &rT) | |
| void | lock () |
| void | unlock () |
| bool | isLocked () const |
| CriticalSection & | operator= (const CriticalSection &rT) |
Private Attributes | |
| std::mutex | m_ExclusiveAccessMutex |
| bool | m_bIsLocked |
Is a mutex which can be queried via its lock mode. See isLocked().
Example
| eut::CriticalSection::CriticalSection | ( | ) |
Constructor.
|
virtual |
Destructor.
| eut::CriticalSection::CriticalSection | ( | const CriticalSection & | rT | ) |
Copy constructor.
| [in] | rT | The data is copied from this object. |
| 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. |
| 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 |