mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-09-24 15:54:12 +00:00
14 lines
No EOL
386 B
C++
14 lines
No EOL
386 B
C++
#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 |