GlobalObjects
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EuPCriticalSection.h
Go to the documentation of this file.
1#ifndef INC_EUPCRITICALSECTION_H
2#define INC_EUPCRITICALSECTION_H
3//-----------------------------------------------------------------------------
68//-----------------------------------------------------------------------------
69#include <pthread.h>
70#include "EuPThreadTypes.h"
71//-----------------------------------------------------------------------------
120class __euthread_export_dll EuPCriticalSection
121{
122 private:
123 //============== Attribute
124 //-------------------------------------------------------------------------
138 pthread_mutex_t m_Mutex;
139 //-------------------------------------------------------------------------
152 //-------------------------------------------------------------------------
153
154 public:
155 //============== Konstruktoren
156 //-------------------------------------------------------------------------
167 //-------------------------------------------------------------------------
178 //-------------------------------------------------------------------------
191 //-------------------------------------------------------------------------
192
193 //============== Methoden
194 //-------------------------------------------------------------------------
210 pthread_mutex_t & getMutex();
211 //-------------------------------------------------------------------------
226 int lock();
227 //-------------------------------------------------------------------------
239 int unlock();
240 //-------------------------------------------------------------------------
252 bool isLocked() const;
253 //-------------------------------------------------------------------------
254
255 //============== Operatoren
256 //-------------------------------------------------------------------------
268 EuPCriticalSection & operator= ( const EuPCriticalSection & rT );
269 //-------------------------------------------------------------------------
270};
271//-----------------------------------------------------------------------------
272#endif
EuPCriticalSection(const EuPCriticalSection &rT)
pthread_mutex_t & getMutex()
virtual ~EuPCriticalSection()
pthread_mutex_t m_Mutex
Definition EuPCriticalSection.h:138
bool m_bIsLocked
Definition EuPCriticalSection.h:151
bool isLocked() const