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

#include <PthreadConditionAttr.h>

+ Inheritance diagram for PthreadConditionAttr:
+ Collaboration diagram for PthreadConditionAttr:

Public Member Functions

 PthreadConditionAttr (void)
 
 ~PthreadConditionAttr (void)
 
 operator pthread_condattr_t * (void)
 
 operator const pthread_condattr_t * (void) const
 
int Error (void)
 
void Clear (void)
 

Protected Member Functions

void TrapError (int result)
 

Protected Attributes

int error
 

Private Attributes

pthread_condattr_t condAttr
 

Detailed Description

Definition at line 39 of file PthreadConditionAttr.h.

Constructor & Destructor Documentation

PthreadConditionAttr::PthreadConditionAttr ( void  )

Definition at line 31 of file PthreadConditionAttr.cc.

References condAttr, and PthreadErrorHandler::TrapError().

33 {
34  TrapError(pthread_condattr_init(&condAttr));
35 }
pthread_condattr_t condAttr
void TrapError(int result)

+ Here is the call graph for this function:

PthreadConditionAttr::~PthreadConditionAttr ( void  )

Definition at line 39 of file PthreadConditionAttr.cc.

References condAttr, and PthreadErrorHandler::TrapError().

41 {
42  try {
43  TrapError(pthread_condattr_destroy(&condAttr));
44  } catch (...) {
45  std::terminate();
46  }
47 }
pthread_condattr_t condAttr
void TrapError(int result)

+ 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; }
PthreadConditionAttr::operator const pthread_condattr_t * ( void  ) const
inline

Definition at line 45 of file PthreadConditionAttr.h.

References condAttr.

45 { return &condAttr; }
pthread_condattr_t condAttr
PthreadConditionAttr::operator pthread_condattr_t * ( void  )
inline

Definition at line 44 of file PthreadConditionAttr.h.

References condAttr.

44 { return &condAttr; }
pthread_condattr_t condAttr
void PthreadErrorHandler::TrapError ( int  result)
inlineprotectedinherited

Member Data Documentation

pthread_condattr_t PthreadConditionAttr::condAttr
private
int PthreadErrorHandler::error
protectedinherited

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