foobar2000 SDK  2015-08-03
Public Member Functions | Data Fields | Private Member Functions
pfc::mutexAttr

#include <synchro_nix.h>

Public Member Functions

 mutexAttr ()
 
 ~mutexAttr ()
 
int getType () const
 
bool isRecursive ()
 
 operator const pthread_mutexattr_t & () const
 
 operator pthread_mutexattr_t & ()
 
void setProcessShared ()
 
void setRecursive ()
 
void setType (int type)
 

Data Fields

pthread_mutexattr_t attr
 

Private Member Functions

 mutexAttr (const mutexAttr &)
 
void operator= (const mutexAttr &)
 

Detailed Description

Definition at line 4 of file synchro_nix.h.

Constructor & Destructor Documentation

pfc::mutexAttr::mutexAttr ( )
inline

Definition at line 6 of file synchro_nix.h.

6 {pthread_mutexattr_init(&attr);}
pthread_mutexattr_t attr
Definition: synchro_nix.h:15
pfc::mutexAttr::~mutexAttr ( )
inline

Definition at line 7 of file synchro_nix.h.

7 {pthread_mutexattr_destroy(&attr);}
pthread_mutexattr_t attr
Definition: synchro_nix.h:15
pfc::mutexAttr::mutexAttr ( const mutexAttr )
private

Member Function Documentation

int pfc::mutexAttr::getType ( ) const
inline

Definition at line 9 of file synchro_nix.h.

9 {int rv = 0; pthread_mutexattr_gettype(&attr, &rv); return rv; }
pthread_mutexattr_t attr
Definition: synchro_nix.h:15
bool pfc::mutexAttr::isRecursive ( )
inline

Definition at line 11 of file synchro_nix.h.

11 {return getType() == PTHREAD_MUTEX_RECURSIVE;}
int getType() const
Definition: synchro_nix.h:9
pfc::mutexAttr::operator const pthread_mutexattr_t & ( ) const
inline

Definition at line 13 of file synchro_nix.h.

13 {return attr;}
pthread_mutexattr_t attr
Definition: synchro_nix.h:15
pfc::mutexAttr::operator pthread_mutexattr_t & ( )
inline

Definition at line 14 of file synchro_nix.h.

14 {return attr;}
pthread_mutexattr_t attr
Definition: synchro_nix.h:15
void pfc::mutexAttr::operator= ( const mutexAttr )
private
void pfc::mutexAttr::setProcessShared ( )
inline

Definition at line 12 of file synchro_nix.h.

12 {pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED);}
pthread_mutexattr_t attr
Definition: synchro_nix.h:15
void pfc::mutexAttr::setRecursive ( )
inline

Definition at line 10 of file synchro_nix.h.

10 {setType(PTHREAD_MUTEX_RECURSIVE);}
void setType(int type)
Definition: synchro_nix.h:8
void pfc::mutexAttr::setType ( int  type)
inline

Definition at line 8 of file synchro_nix.h.

8 {pthread_mutexattr_settype(&attr, type);}
pthread_mutexattr_t attr
Definition: synchro_nix.h:15

Field Documentation

pthread_mutexattr_t pfc::mutexAttr::attr

Definition at line 15 of file synchro_nix.h.


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