|
CPN
Computational Process Networks
|
#include <PthreadLib.h>
Inheritance diagram for Pthread:
Collaboration diagram for Pthread:Public Member Functions | |
| Pthread (void) | |
| Pthread (const PthreadAttr &attr) | |
| virtual | ~Pthread (void) |
| void | Start (void) |
| int | Running (void) |
| int | Done (void) |
| void * | Join (void) |
| operator pthread_t * (void) | |
| operator pthread_t (void) | |
| int | operator== (pthread_t t2) |
| int | Detach (void) |
| int | Cancel (void) |
| int | SendSignal (int sig) |
| int | Kill (int sig) |
| int | Error (void) |
| void | Clear (void) |
Static Public Member Functions | |
| static pthread_t | Self (void) |
| static void | TestCancel (void) |
| static void | Exit (void *value) |
| static int | SendSignal (pthread_t thd, int sig) |
| static int | Kill (pthread_t thd, int sig) |
| static int | GetSignalMask (sigset_t *oldSet) |
| static int | SetSignalMask (const sigset_t *set, sigset_t *oldSet=0) |
| static int | BlockSignals (const sigset_t *set, sigset_t *oldSet=0) |
| static int | UnblockSignals (const sigset_t *set, sigset_t *oldSet=0) |
| static int | CancelEnable (void) |
| static int | CancelDisable (void) |
| static int | CancelDeferred (void) |
| static int | CancelAsynchronous (void) |
Protected Member Functions | |
| virtual void * | EntryPoint (void)=0 |
| void | TrapError (int result) |
Protected Attributes | |
| pthread_t | theThread |
| int | error |
Private Types | |
| enum | PthreadState { uninitialized = 0, created, started, running, done, joined, canceled } |
Static Private Member Functions | |
| static void * | PthreadEntryPoint (void *arg) |
| static void | PthreadCleanup (void *arg) |
Private Attributes | |
| PthreadMutex | mutex |
| PthreadCondition | cond |
| void * | returnResult |
| bool | inJoin |
| PthreadState | state |
Definition at line 56 of file PthreadLib.h.
|
private |
| Enumerator | |
|---|---|
| uninitialized | |
| created | |
| started | |
| running | |
| done | |
| joined | |
| canceled | |
Definition at line 89 of file PthreadLib.h.
| Pthread::Pthread | ( | void | ) |
Definition at line 32 of file PthreadLib.cc.
References PthreadCondition::Broadcast(), cond, created, inJoin, mutex, PthreadEntryPoint(), returnResult, state, PthreadBase::theThread, PthreadErrorHandler::TrapError(), and uninitialized.
Here is the call graph for this function:| Pthread::Pthread | ( | const PthreadAttr & | attr | ) |
Definition at line 46 of file PthreadLib.cc.
References PthreadCondition::Broadcast(), cond, created, inJoin, mutex, PthreadEntryPoint(), returnResult, state, PthreadBase::theThread, PthreadErrorHandler::TrapError(), and uninitialized.
Here is the call graph for this function:
|
virtual |
Definition at line 67 of file PthreadLib.cc.
References PthreadCondition::Broadcast(), canceled, cond, created, Join(), mutex, running, Start(), started, state, and uninitialized.
Here is the call graph for this function:
|
inlinestaticinherited |
Definition at line 77 of file PthreadBase.h.
|
inlineinherited |
|
staticinherited |
Definition at line 105 of file PthreadBase.cc.
|
staticinherited |
Definition at line 95 of file PthreadBase.cc.
|
staticinherited |
Definition at line 86 of file PthreadBase.cc.
|
staticinherited |
Definition at line 76 of file PthreadBase.cc.
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 72 of file PthreadLib.h.
|
protectedpure virtual |
Implemented in PthreadFunctionalTemplate< T >, and PthreadFunctional.
Referenced by PthreadEntryPoint().
Here is the caller graph for this function:
|
inlineinherited |
|
inlinestaticinherited |
Definition at line 64 of file PthreadBase.h.
|
inlinestaticinherited |
Definition at line 73 of file PthreadBase.h.
| void * Pthread::Join | ( | void | ) |
Definition at line 108 of file PthreadLib.cc.
References PthreadCondition::Broadcast(), cond, inJoin, joined, mutex, returnResult, state, PthreadBase::theThread, PthreadErrorHandler::TrapError(), and PthreadCondition::Wait().
Referenced by ~Pthread().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 71 of file PthreadBase.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
staticprivate |
Definition at line 154 of file PthreadLib.cc.
References PthreadCondition::Broadcast(), cond, done, mutex, and state.
Referenced by PthreadEntryPoint().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 131 of file PthreadLib.cc.
References PthreadCondition::Broadcast(), cond, created, EntryPoint(), mutex, PthreadCleanup(), running, started, state, PthreadBase::TestCancel(), and PthreadCondition::Wait().
Referenced by Pthread().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 64 of file PthreadLib.h.
References mutex, running, and state.
|
inlinestaticinherited |
Definition at line 61 of file PthreadBase.h.
Referenced by PthreadBase::PthreadBase().
Here is the caller graph for this function:Definition at line 70 of file PthreadBase.h.
|
inlinestaticinherited |
Definition at line 75 of file PthreadBase.h.
| void Pthread::Start | ( | void | ) |
Definition at line 100 of file PthreadLib.cc.
References PthreadCondition::Broadcast(), cond, created, mutex, started, and state.
Referenced by ~Pthread().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestaticinherited |
Definition at line 63 of file PthreadBase.h.
Referenced by PthreadEntryPoint().
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(), Join(), PthreadMutex::Lock(), PthreadMutex::Poll(), Pthread(), PthreadAttr::PthreadAttr(), PthreadBase::PthreadBase(), PthreadCondition::PthreadCondition(), PthreadConditionAttr::PthreadConditionAttr(), PthreadKey< T >::PthreadKey(), PthreadMutex::PthreadMutex(), PthreadMutexAttr::PthreadMutexAttr(), PthreadReadWriteLock::ReadUnlock(), PthreadAttr::ScheduleScope(), PthreadKey< T >::Set(), PthreadCondition::Signal(), PthreadCondition::TimedWait(), PthreadMutex::Unlock(), PthreadCondition::Wait(), PthreadReadWriteLock::WriteUnlock(), PthreadAttr::~PthreadAttr(), PthreadCondition::~PthreadCondition(), PthreadConditionAttr::~PthreadConditionAttr(), PthreadKey< T >::~PthreadKey(), PthreadMutex::~PthreadMutex(), and PthreadMutexAttr::~PthreadMutexAttr().
Here is the caller graph for this function:
|
inlinestaticinherited |
Definition at line 79 of file PthreadBase.h.
|
private |
Definition at line 85 of file PthreadLib.h.
Referenced by Join(), Pthread(), PthreadCleanup(), PthreadEntryPoint(), Start(), and ~Pthread().
|
protectedinherited |
Definition at line 43 of file PthreadErrorHandler.h.
Referenced by PthreadErrorHandler::Clear(), PthreadErrorHandler::Error(), PthreadErrorHandler::PthreadErrorHandler(), and PthreadErrorHandler::TrapError().
|
private |
Definition at line 87 of file PthreadLib.h.
|
private |
Definition at line 84 of file PthreadLib.h.
Referenced by Done(), Join(), Pthread(), PthreadCleanup(), PthreadEntryPoint(), Running(), Start(), and ~Pthread().
|
private |
Definition at line 86 of file PthreadLib.h.
|
private |
Definition at line 90 of file PthreadLib.h.
Referenced by Done(), Join(), Pthread(), PthreadCleanup(), PthreadEntryPoint(), Running(), Start(), and ~Pthread().
|
protectedinherited |
Definition at line 126 of file PthreadBase.h.
Referenced by PthreadBase::Cancel(), PthreadBase::Detach(), PthreadBase::Join(), Join(), PthreadBase::Kill(), PthreadBase::operator pthread_t(), PthreadBase::operator pthread_t *(), PthreadBase::operator==(), Pthread(), PthreadBase::PthreadBase(), and PthreadBase::SendSignal().
1.8.5