Last change
on this file since 1180 was 1166, checked in by rossy, 3 years ago |
Daodan: Replace MinGW build env with an up-to-date MSYS2 env
|
File size:
556 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * This file has no copyright assigned and is placed in the Public Domain.
|
---|
3 | * This file is part of the mingw-w64 runtime package.
|
---|
4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
---|
5 | */
|
---|
6 | #ifndef _STLLOCK_H_
|
---|
7 | #define _STLLOCK_H_
|
---|
8 |
|
---|
9 | #ifdef __cplusplus
|
---|
10 |
|
---|
11 | class CCritSec : public CRITICAL_SECTION {
|
---|
12 | public:
|
---|
13 | CCritSec() { InitializeCriticalSection(this); }
|
---|
14 | ~CCritSec() { DeleteCriticalSection(this); }
|
---|
15 | void Enter() { EnterCriticalSection(this); }
|
---|
16 | void Leave() { LeaveCriticalSection(this); }
|
---|
17 | };
|
---|
18 |
|
---|
19 | #endif /* __cplusplus */
|
---|
20 |
|
---|
21 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.