CPN
Computational Process Networks
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | Friends | List of all members
PthreadMutexAttr Class Reference

#include <PthreadMutexAttr.h>

+ Inheritance diagram for PthreadMutexAttr:
+ Collaboration diagram for PthreadMutexAttr:

Public Member Functions

 PthreadMutexAttr (void)
 
 ~PthreadMutexAttr (void)
 
 operator pthread_mutexattr_t * (void)
 
 operator const pthread_mutexattr_t * (void) const
 
int Error (void)
 
void Clear (void)
 

Protected Member Functions

void TrapError (int result)
 

Protected Attributes

int error
 

Private Attributes

pthread_mutexattr_t theAttr
 

Friends

class PthreadMutex
 

Detailed Description

Definition at line 38 of file PthreadMutexAttr.h.

Constructor & Destructor Documentation

PthreadMutexAttr::PthreadMutexAttr ( void  )

Definition at line 32 of file PthreadMutexAttr.cc.

References theAttr, and PthreadErrorHandler::TrapError().

34 {
35  TrapError(pthread_mutexattr_init(&theAttr));
36 }
void TrapError(int result)
pthread_mutexattr_t theAttr

+ Here is the call graph for this function:

PthreadMutexAttr::~PthreadMutexAttr ( void  )

Definition at line 39 of file PthreadMutexAttr.cc.

References theAttr, and PthreadErrorHandler::TrapError().

41 {
42  try {
43  TrapError(pthread_mutexattr_destroy(&theAttr));
44  } catch (...) {
45  std::terminate();
46  }
47 }
void TrapError(int result)
pthread_mutexattr_t theAttr

+ Here is the call graph for this function:

Member Function Documentation

void PthreadErrorHandler::Clear ( void  )
inlineinherited

Definition at line 40 of file PthreadErrorHandler.h.

References PthreadErrorHandler::error.

40 { error = 0; }
int PthreadErrorHandler::Error ( void  )
inlineinherited

Definition at line 39 of file PthreadErrorHandler.h.

References PthreadErrorHandler::error.

39 { return error; }
PthreadMutexAttr::operator const pthread_mutexattr_t * ( void  ) const
inline

Definition at line 43 of file PthreadMutexAttr.h.

References theAttr.

43 { return &theAttr; }
pthread_mutexattr_t theAttr
PthreadMutexAttr::operator pthread_mutexattr_t * ( void  )
inline

Definition at line 42 of file PthreadMutexAttr.h.

References theAttr.

42 { return &theAttr; }
pthread_mutexattr_t theAttr
void PthreadErrorHandler::TrapError ( int  result)
inlineprotectedinherited

Friends And Related Function Documentation

friend class PthreadMutex
friend

Definition at line 76 of file PthreadMutexAttr.h.

Member Data Documentation

int PthreadErrorHandler::error
protectedinherited
pthread_mutexattr_t PthreadMutexAttr::theAttr
private

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