mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
28 lines
361 B
C++
28 lines
361 B
C++
#ifndef CRITICAL_SECTION_H
|
|
#define CRITICAL_SECTION_H
|
|
|
|
#pragma warning ( disable:4005 )
|
|
#pragma warning ( disable:4996 )
|
|
|
|
#include "../Interface/Mutex.h"
|
|
|
|
|
|
class CriticalSection
|
|
{
|
|
public:
|
|
CriticalSection();
|
|
~CriticalSection();
|
|
|
|
void Enter();
|
|
|
|
//bool TryEnter();
|
|
|
|
void Leave();
|
|
|
|
private:
|
|
//CRITICAL_SECTION cs;
|
|
IMutex *mutex;
|
|
};
|
|
|
|
#endif
|