|
CPN
Computational Process Networks
|
#include <PthreadReadWriteLock.h>
Inheritance diagram for PthreadReadWriteLock:
Collaboration diagram for PthreadReadWriteLock:Public Member Functions | |
| PthreadReadWriteLock (int _priorityWrites=1) | |
| void | ReadLock (void) |
| void | WriteLock (void) |
| void | ReadUnlock (void) |
| void | WriteUnlock (void) |
| int | Error (void) |
| void | Clear (void) |
Protected Member Functions | |
| void | TrapError (int result) |
Protected Attributes | |
| int | error |
Private Attributes | |
| PthreadMutex | mutex |
| PthreadCondition | lockFree |
| int | numReaders |
| int | writing |
| int | noNewReaders |
| int | priorityWrites |
Definition at line 37 of file PthreadReadWriteLock.h.
| PthreadReadWriteLock::PthreadReadWriteLock | ( | int | _priorityWrites = 1 | ) |
Definition at line 29 of file PthreadReadWriteLock.cc.
|
inlineinherited |
|
inlineinherited |
| void PthreadReadWriteLock::ReadLock | ( | void | ) |
Definition at line 41 of file PthreadReadWriteLock.cc.
References lockFree, mutex, noNewReaders, numReaders, and PthreadCondition::Wait().
Referenced by PthreadReadLockProtected::PthreadReadLockProtected().
Here is the call graph for this function:
Here is the caller graph for this function:| void PthreadReadWriteLock::ReadUnlock | ( | void | ) |
Definition at line 66 of file PthreadReadWriteLock.cc.
References lockFree, mutex, numReaders, PthreadCondition::Signal(), and PthreadErrorHandler::TrapError().
Referenced by PthreadReadLockProtected::~PthreadReadLockProtected().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotectedinherited |
Definition at line 48 of file PthreadErrorHandler.h.
References PthreadErrorHandler::error.
Referenced by PthreadCondition::Broadcast(), PthreadAttr::DetachState(), PthreadBase::Join(), Pthread::Join(), PthreadMutex::Lock(), PthreadMutex::Poll(), Pthread::Pthread(), PthreadAttr::PthreadAttr(), PthreadBase::PthreadBase(), PthreadCondition::PthreadCondition(), PthreadConditionAttr::PthreadConditionAttr(), PthreadKey< T >::PthreadKey(), PthreadMutex::PthreadMutex(), PthreadMutexAttr::PthreadMutexAttr(), ReadUnlock(), PthreadAttr::ScheduleScope(), PthreadKey< T >::Set(), PthreadCondition::Signal(), PthreadCondition::TimedWait(), PthreadMutex::Unlock(), PthreadCondition::Wait(), WriteUnlock(), PthreadAttr::~PthreadAttr(), PthreadCondition::~PthreadCondition(), PthreadConditionAttr::~PthreadConditionAttr(), PthreadKey< T >::~PthreadKey(), PthreadMutex::~PthreadMutex(), and PthreadMutexAttr::~PthreadMutexAttr().
Here is the caller graph for this function:| void PthreadReadWriteLock::WriteLock | ( | void | ) |
Definition at line 52 of file PthreadReadWriteLock.cc.
References lockFree, mutex, noNewReaders, numReaders, priorityWrites, PthreadCondition::Wait(), and writing.
Referenced by PthreadWriteLockProtected::PthreadWriteLockProtected().
Here is the call graph for this function:
Here is the caller graph for this function:| void PthreadReadWriteLock::WriteUnlock | ( | void | ) |
Definition at line 83 of file PthreadReadWriteLock.cc.
References PthreadCondition::Broadcast(), lockFree, mutex, noNewReaders, PthreadErrorHandler::TrapError(), and writing.
Referenced by PthreadWriteLockProtected::~PthreadWriteLockProtected().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protectedinherited |
Definition at line 43 of file PthreadErrorHandler.h.
Referenced by PthreadErrorHandler::Clear(), PthreadErrorHandler::Error(), PthreadErrorHandler::PthreadErrorHandler(), and PthreadErrorHandler::TrapError().
|
private |
Definition at line 51 of file PthreadReadWriteLock.h.
Referenced by ReadLock(), ReadUnlock(), WriteLock(), and WriteUnlock().
|
private |
Definition at line 50 of file PthreadReadWriteLock.h.
Referenced by ReadLock(), ReadUnlock(), WriteLock(), and WriteUnlock().
|
private |
Definition at line 54 of file PthreadReadWriteLock.h.
Referenced by ReadLock(), WriteLock(), and WriteUnlock().
|
private |
Definition at line 52 of file PthreadReadWriteLock.h.
Referenced by ReadLock(), ReadUnlock(), and WriteLock().
|
private |
Definition at line 55 of file PthreadReadWriteLock.h.
Referenced by WriteLock().
|
private |
Definition at line 53 of file PthreadReadWriteLock.h.
Referenced by WriteLock(), and WriteUnlock().
1.8.5