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//-----------------------------------------------------------------------------
88class __euthread_export_dll EuPCriticalSection
89{
90 private:
91 //============== Attribute
92 //-------------------------------------------------------------------------
106 pthread_mutex_t m_Mutex;
107 //-------------------------------------------------------------------------
120 //-------------------------------------------------------------------------
121
122 public:
123 //============== Konstruktoren
124 //-------------------------------------------------------------------------
135 //-------------------------------------------------------------------------
146 //-------------------------------------------------------------------------
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
Ist ein Mutex, welcher über sein Lock-Modus abgefragt werden kann. Siehe isLocked().
Definition EuPCriticalSection.h:89
EuPCriticalSection(const EuPCriticalSection &rT)
pthread_mutex_t & getMutex()
virtual ~EuPCriticalSection()
pthread_mutex_t m_Mutex
Definition EuPCriticalSection.h:106
bool m_bIsLocked
Definition EuPCriticalSection.h:119
bool isLocked() const