GlobalObjects
Lade ...
Suche ...
Keine Treffer
EuPCriticalSection.h
gehe zur Dokumentation dieser Datei
1
#ifndef INC_EUPCRITICALSECTION_H
2
#define INC_EUPCRITICALSECTION_H
3
//-----------------------------------------------------------------------------
36
//-----------------------------------------------------------------------------
37
#include <pthread.h>
38
#include "EuPThreadTypes.h"
39
//-----------------------------------------------------------------------------
88
class
__euthread_export_dll
EuPCriticalSection
89
{
90
private
:
91
//============== Attribute
92
//-------------------------------------------------------------------------
106
pthread_mutex_t
m_Mutex
;
107
//-------------------------------------------------------------------------
119
bool
m_bIsLocked
;
120
//-------------------------------------------------------------------------
121
122
public
:
123
//============== Konstruktoren
124
//-------------------------------------------------------------------------
134
EuPCriticalSection
();
135
//-------------------------------------------------------------------------
145
virtual
~EuPCriticalSection
();
146
//-------------------------------------------------------------------------
158
EuPCriticalSection
(
const
EuPCriticalSection
& rT );
159
//-------------------------------------------------------------------------
160
161
//============== Methoden
162
//-------------------------------------------------------------------------
178
pthread_mutex_t &
getMutex
();
179
//-------------------------------------------------------------------------
194
int
lock
();
195
//-------------------------------------------------------------------------
207
int
unlock
();
208
//-------------------------------------------------------------------------
220
bool
isLocked
()
const
;
221
//-------------------------------------------------------------------------
222
223
//============== Operatoren
224
//-------------------------------------------------------------------------
236
EuPCriticalSection
& operator= (
const
EuPCriticalSection
& rT );
237
//-------------------------------------------------------------------------
238
};
239
//-----------------------------------------------------------------------------
240
#endif
EuPCriticalSection
Ist ein Mutex, welcher über sein Lock-Modus abgefragt werden kann. Siehe isLocked().
Definition
EuPCriticalSection.h:89
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:106
EuPCriticalSection::lock
int lock()
EuPCriticalSection::EuPCriticalSection
EuPCriticalSection()
EuPCriticalSection::unlock
int unlock()
EuPCriticalSection::m_bIsLocked
bool m_bIsLocked
Definition
EuPCriticalSection.h:119
EuPCriticalSection::isLocked
bool isLocked() const
EuThreads
include
EuPCriticalSection.h
Erzeugt von
1.10.0