Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/pfc/critsec.h

14 lines
386 B
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
#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