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//-----------------------------------------------------------------------------
51//-----------------------------------------------------------------------------
52#include "EuToolTypes.h"
53#include <mutex>
54//-----------------------------------------------------------------------------
55namespace eut
56{
57 //---------------------------------------------------------------------------
58 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
59 #ifdef _MSC_VER
60 #pragma warning( disable : 4251 )
61 #endif
62 //---------------------------------------------------------------------------
108 class __tool_export_dll CriticalSection
109 {
110 private:
111 //============== Attribute
112 //-----------------------------------------------------------------------
125 //-----------------------------------------------------------------------
138 //-----------------------------------------------------------------------
139
140 public:
141 //============== Konstruktoren
142 //-----------------------------------------------------------------------
153 //-----------------------------------------------------------------------
164 //-----------------------------------------------------------------------
177 //-----------------------------------------------------------------------
178
179 //============== Methoden
180 //-----------------------------------------------------------------------
193 void lock();
194 //-----------------------------------------------------------------------
204 void unlock();
205 //-----------------------------------------------------------------------
217 bool isLocked() const;
218 //-----------------------------------------------------------------------
219
220 //============== Operatoren
221 //-----------------------------------------------------------------------
233 CriticalSection & operator= ( const CriticalSection & rT );
234 //-----------------------------------------------------------------------
235 };
236 //---------------------------------------------------------------------------
237 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
238 #ifdef _MSC_VER
239 #pragma warning( default : 4251 )
240 #endif
241 //---------------------------------------------------------------------------
242} // namespace eut
243#endif
Is a mutex which can be queried via its lock mode. See isLocked().
Definition EuCriticalSection.h:109
CriticalSection(const CriticalSection &rT)
bool isLocked() const
bool m_bIsLocked
Definition EuCriticalSection.h:137
virtual ~CriticalSection()
std::mutex m_ExclusiveAccessMutex
Definition EuCriticalSection.h:124
Definition EuCriticalSection.h:56