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

#include <PthreadMutex.h>

+ Collaboration diagram for PthreadMutexProtected:

Public Member Functions

 PthreadMutexProtected (PthreadMutex &tm)
 
 ~PthreadMutexProtected ()
 

Private Attributes

PthreadMutextheMutex
 

Detailed Description

Definition at line 61 of file PthreadMutex.h.

Constructor & Destructor Documentation

PthreadMutexProtected::PthreadMutexProtected ( PthreadMutex tm)
inline

Definition at line 63 of file PthreadMutex.h.

References PthreadMutex::Take(), and theMutex.

63 : theMutex(&tm) { theMutex->Take(); }
PthreadMutex * theMutex
Definition: PthreadMutex.h:66
PthreadMutex & Take(void)
Definition: PthreadMutex.h:51

+ Here is the call graph for this function:

PthreadMutexProtected::~PthreadMutexProtected ( )
inline

Definition at line 64 of file PthreadMutex.h.

References PthreadMutex::Give(), and theMutex.

64 { theMutex->Give(); }
PthreadMutex & Give(void)
Definition: PthreadMutex.h:52
PthreadMutex * theMutex
Definition: PthreadMutex.h:66

+ Here is the call graph for this function:

Member Data Documentation

PthreadMutex* PthreadMutexProtected::theMutex
private

Definition at line 66 of file PthreadMutex.h.

Referenced by PthreadMutexProtected(), and ~PthreadMutexProtected().


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