foobar2000 SDK  2015-08-03
Public Member Functions | Private Member Functions | Private Attributes
pfc::readWriteLock

#include <synchro_nix.h>

+ Inheritance diagram for pfc::readWriteLock:

Public Member Functions

 readWriteLock ()
 
 readWriteLock ()
 
 readWriteLock ()
 
 ~readWriteLock ()
 
void enterRead ()
 
void enterRead ()
 
void enterWrite ()
 
void enterWrite ()
 
void leaveRead ()
 
void leaveRead ()
 
void leaveWrite ()
 
void leaveWrite ()
 
- Public Member Functions inherited from pfc::readWriteLockBase
void create (const pthread_rwlockattr_t *attr)
 
void create (const readWriteLockAttr &)
 
void destroy ()
 
void enterRead ()
 
void enterWrite ()
 
void leaveRead ()
 
void leaveWrite ()
 

Private Member Functions

 readWriteLock (const readWriteLock &)
 
 readWriteLock (const readWriteLock &)
 
void operator= (const readWriteLock &)
 
void operator= (const readWriteLock &)
 

Private Attributes

critical_section m_obj
 
SRWLOCK theLock
 

Additional Inherited Members

- Protected Member Functions inherited from pfc::readWriteLockBase
 readWriteLockBase ()
 
 ~readWriteLockBase ()
 

Detailed Description

Definition at line 109 of file synchro_nix.h.

Constructor & Destructor Documentation

pfc::readWriteLock::readWriteLock ( )
inline

Definition at line 111 of file synchro_nix.h.

111 {create(NULL);}
void create(const pthread_rwlockattr_t *attr)
Definition: synchro_nix.cpp:22
pfc::readWriteLock::~readWriteLock ( )
inline

Definition at line 112 of file synchro_nix.h.

112 {destroy();}
pfc::readWriteLock::readWriteLock ( )
inline

Definition at line 62 of file synchro_win.h.

62 {}
pfc::readWriteLock::readWriteLock ( const readWriteLock )
private
pfc::readWriteLock::readWriteLock ( )
inline

Definition at line 85 of file synchro_win.h.

85  : theLock() {
86  }
pfc::readWriteLock::readWriteLock ( const readWriteLock )
private

Member Function Documentation

void pfc::readWriteLock::enterRead ( )
inline

Definition at line 63 of file synchro_win.h.

63  {
64  m_obj.enter();
65  }
critical_section m_obj
Definition: synchro_win.h:76
void pfc::readWriteLock::enterRead ( )
inline

Definition at line 88 of file synchro_win.h.

88  {
89  AcquireSRWLockShared( & theLock );
90  }
void pfc::readWriteLock::enterWrite ( )
inline

Definition at line 66 of file synchro_win.h.

66  {
67  m_obj.enter();
68  }
critical_section m_obj
Definition: synchro_win.h:76
void pfc::readWriteLock::enterWrite ( )
inline

Definition at line 91 of file synchro_win.h.

91  {
92  AcquireSRWLockExclusive( & theLock );
93  }
void pfc::readWriteLock::leaveRead ( )
inline

Definition at line 69 of file synchro_win.h.

69  {
70  m_obj.leave();
71  }
critical_section m_obj
Definition: synchro_win.h:76
void pfc::readWriteLock::leaveRead ( )
inline

Definition at line 94 of file synchro_win.h.

94  {
95  ReleaseSRWLockShared( & theLock );
96  }
void pfc::readWriteLock::leaveWrite ( )
inline

Definition at line 72 of file synchro_win.h.

72  {
73  m_obj.leave();
74  }
critical_section m_obj
Definition: synchro_win.h:76
void pfc::readWriteLock::leaveWrite ( )
inline

Definition at line 97 of file synchro_win.h.

97  {
98  ReleaseSRWLockExclusive( &theLock );
99  }
void pfc::readWriteLock::operator= ( const readWriteLock )
private
void pfc::readWriteLock::operator= ( const readWriteLock )
private

Field Documentation

critical_section pfc::readWriteLock::m_obj
private

Definition at line 76 of file synchro_win.h.

SRWLOCK pfc::readWriteLock::theLock
private

Definition at line 105 of file synchro_win.h.


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