foobar2000 SDK  2015-08-03
Public Member Functions | Protected Attributes | Private Member Functions
_critical_section_base

#include <synchro_win.h>

+ Inheritance diagram for _critical_section_base:

Public Member Functions

 _critical_section_base ()
 
void create () throw ()
 
void destroy () throw ()
 
void enter () throw ()
 
void leave () throw ()
 

Protected Attributes

CRITICAL_SECTION sec
 

Private Member Functions

 _critical_section_base (const _critical_section_base &)
 
void operator= (const _critical_section_base &)
 

Detailed Description

Definition at line 1 of file synchro_win.h.

Constructor & Destructor Documentation

_critical_section_base::_critical_section_base ( )
inline

Definition at line 5 of file synchro_win.h.

5 {}
_critical_section_base::_critical_section_base ( const _critical_section_base )
private

Member Function Documentation

void _critical_section_base::create ( )
throw (
)
inline

Definition at line 8 of file synchro_win.h.

8  {
9 #ifdef PFC_WINDOWS_DESKTOP_APP
11 #else
12  InitializeCriticalSectionEx(&sec,0,0);
13 #endif
14  }
CRITICAL_SECTION sec
Definition: synchro_win.h:3
void InitializeCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
Definition: pp-winapi.h:24
void _critical_section_base::destroy ( )
throw (
)
inline

Definition at line 15 of file synchro_win.h.

15 {DeleteCriticalSection(&sec);}
CRITICAL_SECTION sec
Definition: synchro_win.h:3
void _critical_section_base::enter ( )
throw (
)
inline

Definition at line 6 of file synchro_win.h.

6 {EnterCriticalSection(&sec);}
CRITICAL_SECTION sec
Definition: synchro_win.h:3
void _critical_section_base::leave ( )
throw (
)
inline

Definition at line 7 of file synchro_win.h.

7 {LeaveCriticalSection(&sec);}
CRITICAL_SECTION sec
Definition: synchro_win.h:3
void _critical_section_base::operator= ( const _critical_section_base )
private

Field Documentation

CRITICAL_SECTION _critical_section_base::sec
protected

Definition at line 3 of file synchro_win.h.


The documentation for this class was generated from the following file: