Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
14
Src/pfc/critsec.h
Normal file
14
Src/pfc/critsec.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#ifndef _PFC_CRITSEC_H_
|
||||
#define _PFC_CRITSEC_H_
|
||||
|
||||
class critical_section : public CRITICAL_SECTION
|
||||
{
|
||||
public:
|
||||
inline void enter() {EnterCriticalSection(this);}
|
||||
inline void leave() {LeaveCriticalSection(this);}
|
||||
critical_section() {InitializeCriticalSection(this);}
|
||||
~critical_section() {DeleteCriticalSection(this);}
|
||||
//BOOL TryEnter() {return TryEnterCriticalSection(this);}
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue