TcpLib
Loading...
Searching...
No Matches
EuCriticalSection.h
Go to the documentation of this file.
1#ifndef INC_EUCRITICALSECTION_H
2#define INC_EUCRITICALSECTION_H
3//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include "EuToolTypes.h"
38#include <mutex>
39//-----------------------------------------------------------------------------
40namespace eut
41{
42 //---------------------------------------------------------------------------
43 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
44 #ifdef _MSC_VER
45 #pragma warning( disable : 4251 )
46 #endif
47 //---------------------------------------------------------------------------
93 class __tool_export_dll CriticalSection
94 {
95 private:
96 //============== Attribute
97 //-----------------------------------------------------------------------
110 //-----------------------------------------------------------------------
123 //-----------------------------------------------------------------------
124
125 public:
126 //============== Konstruktoren
127 //-----------------------------------------------------------------------
138 //-----------------------------------------------------------------------
149 //-----------------------------------------------------------------------
162 //-----------------------------------------------------------------------
163
164 //============== Methoden
165 //-----------------------------------------------------------------------
178 void lock();
179 //-----------------------------------------------------------------------
191 void unlock();
192 //-----------------------------------------------------------------------
204 bool isLocked() const;
205 //-----------------------------------------------------------------------
206
207 //============== Operatoren
208 //-----------------------------------------------------------------------
220 CriticalSection & operator= ( const CriticalSection & rT );
221 //-----------------------------------------------------------------------
222 };
223 //---------------------------------------------------------------------------
224 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
225 #ifdef _MSC_VER
226 #pragma warning( default : 4251 )
227 #endif
228 //---------------------------------------------------------------------------
229} // namespace eut
230#endif
Is a mutex which can be queried via its lock mode. See isLocked().
Definition: EuCriticalSection.h:94
CriticalSection(const CriticalSection &rT)
bool isLocked() const
bool m_bIsLocked
Definition: EuCriticalSection.h:122
virtual ~CriticalSection()
std::mutex m_ExclusiveAccessMutex
Definition: EuCriticalSection.h:109
Definition: EuCriticalSection.h:41