-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcmutexobject.h
More file actions
39 lines (31 loc) · 1.45 KB
/
cmutexobject.h
File metadata and controls
39 lines (31 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef C_MUTEX_OBJECT_H
#define C_MUTEX_OBJECT_H
//****************************************************************************************************
//Класс работы с мютексом
//****************************************************************************************************
//****************************************************************************************************
//подключаемые библиотеки
//****************************************************************************************************
#include "stdafx.h"
//****************************************************************************************************
//макроопределения
//****************************************************************************************************
//****************************************************************************************************
//Класс работы с мютексом
//****************************************************************************************************
class CMutexObject
{
private:
CRITICAL_SECTION CriticalSection;
public:
//конструктор
CMutexObject(void);
//конструктор копирования
CMutexObject(const CMutexObject& cMutexObject);
//деструктор
~CMutexObject();
public:
void Lock(void);//заблокировать мютекс
void Unlock(void);//разблокировать мютекс
};
#endif