GlobalObjects
Lade ...
Suche ...
Keine Treffer
EuPCriticalSection.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_EUPCRITICALSECTION_H
2#define INC_EUPCRITICALSECTION_H
3//-----------------------------------------------------------------------------
51//-----------------------------------------------------------------------------
52#include <pthread.h>
53#include "EuPThreadTypes.h"
54//-----------------------------------------------------------------------------
103class __euthread_export_dll EuPCriticalSection
104{
105 private:
106 //============== Attribute
107 //-------------------------------------------------------------------------
121 pthread_mutex_t m_Mutex;
122 //-------------------------------------------------------------------------
135 //-------------------------------------------------------------------------
136
137 public:
138 //============== Konstruktoren
139 //-------------------------------------------------------------------------
150 //-------------------------------------------------------------------------
161 //-------------------------------------------------------------------------
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
Ist ein Mutex, welcher über sein Lock-Modus abgefragt werden kann. Siehe isLocked().
Definition EuPCriticalSection.h:104
EuPCriticalSection(const EuPCriticalSection &rT)
pthread_mutex_t & getMutex()
virtual ~EuPCriticalSection()
pthread_mutex_t m_Mutex
Definition EuPCriticalSection.h:121
bool m_bIsLocked
Definition EuPCriticalSection.h:134
bool isLocked() const