GlobalObjects
Loading...
Searching...
No Matches
EuPCriticalSection.h
Go to the documentation of this file.
1
#ifndef INC_EUPCRITICALSECTION_H
2
#define INC_EUPCRITICALSECTION_H
3
//-----------------------------------------------------------------------------
51
//-----------------------------------------------------------------------------
52
#include <pthread.h>
53
#include "EuPThreadTypes.h"
54
//-----------------------------------------------------------------------------
103
class
__euthread_export_dll
EuPCriticalSection
104
{
105
private
:
106
//============== Attribute
107
//-------------------------------------------------------------------------
121
pthread_mutex_t
m_Mutex
;
122
//-------------------------------------------------------------------------
134
bool
m_bIsLocked
;
135
//-------------------------------------------------------------------------
136
137
public
:
138
//============== Konstruktoren
139
//-------------------------------------------------------------------------
149
EuPCriticalSection
();
150
//-------------------------------------------------------------------------
160
virtual
~EuPCriticalSection
();
161
//-------------------------------------------------------------------------
173
EuPCriticalSection
(
const
EuPCriticalSection
& rT );
174
//-------------------------------------------------------------------------
175
176
//============== Methoden
177
//-------------------------------------------------------------------------
193
pthread_mutex_t &
getMutex
();
194
//-------------------------------------------------------------------------
209
int
lock
();
210
//-------------------------------------------------------------------------
222
int
unlock
();
223
//-------------------------------------------------------------------------
235
bool
isLocked
()
const
;
236
//-------------------------------------------------------------------------
237
238
//============== Operatoren
239
//-------------------------------------------------------------------------
251
EuPCriticalSection
& operator= (
const
EuPCriticalSection
& rT );
252
//-------------------------------------------------------------------------
253
};
254
//-----------------------------------------------------------------------------
255
#endif
EuPCriticalSection
Is a mutex which can be queried via its lock mode. See isLocked().
Definition
EuPCriticalSection.h:104
EuPCriticalSection::EuPCriticalSection
EuPCriticalSection(const EuPCriticalSection &rT)
EuPCriticalSection::getMutex
pthread_mutex_t & getMutex()
EuPCriticalSection::~EuPCriticalSection
virtual ~EuPCriticalSection()
EuPCriticalSection::m_Mutex
pthread_mutex_t m_Mutex
Definition
EuPCriticalSection.h:121
EuPCriticalSection::lock
int lock()
EuPCriticalSection::EuPCriticalSection
EuPCriticalSection()
EuPCriticalSection::unlock
int unlock()
EuPCriticalSection::m_bIsLocked
bool m_bIsLocked
Definition
EuPCriticalSection.h:134
EuPCriticalSection::isLocked
bool isLocked() const
EuThreads
include
EuPCriticalSection.h
Generated by
1.12.0