mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 08:25:45 -04:00
Initial community commit
This commit is contained in:
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
|
Reference in New Issue
Block a user