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

Public Member Functions | |
| EuPCriticalSection () | |
| EuPCriticalSection (const EuPCriticalSection &rT) | |
| virtual | ~EuPCriticalSection () |
| pthread_mutex_t & | getMutex () |
| bool | isLocked () const |
| int | lock () |
| EuPCriticalSection & | operator= (const EuPCriticalSection &rT) |
| int | unlock () |
Private Attributes | |
| bool | m_bIsLocked |
| pthread_mutex_t | m_Mutex |
Is a mutex which can be queried via its lock mode. See isLocked().
Example
| EuPCriticalSection::EuPCriticalSection | ( | ) |
Constructor. An m_Mutex is initialized.
Referenced by EuPCriticalSection(), and operator=().
|
virtual |
Destructor, the m_Mutex is destroyed.
| EuPCriticalSection::EuPCriticalSection | ( | const EuPCriticalSection & | rT | ) |
Copy constructor.
| [in] | rT | The data is copied from this object. |
References EuPCriticalSection().
| pthread_mutex_t & EuPCriticalSection::getMutex | ( | ) |
Delivers the mutex.
| bool EuPCriticalSection::isLocked | ( | ) | const |
Is the CriticalSection in lock mode?
| int EuPCriticalSection::lock | ( | ) |
Initiates a CriticalSection.
| EuPCriticalSection & EuPCriticalSection::operator= | ( | const EuPCriticalSection & | rT | ) |
Assignment operator.
| [in] | rT | The data is transferred from this object. |
References EuPCriticalSection().
| int EuPCriticalSection::unlock | ( | ) |
Terminates a CriticalSection.
|
private |
If an EuPCriticalSection blocks access, this attribute is set to true and on release it is set to false again.
|
private |
A pthread_mutex_t object.
Initialized in the constructor and destroyed in the destructor.