#include <ThreadTracker.h>
Inheritance diagram for ThreadTracker:
Public Member Functions | |
virtual | ~ThreadTracker () |
virtual void | onThreadStart () |
Called in new thread context before thread's body runs. | |
virtual void | onThreadEnd () |
Called in thread context after thread's body runs. | |
virtual FennelExcn * | cloneExcn (std::exception &ex) |
Clones an exception so that it can be rethrown in a different thread context. |
The default implementation is a dummy (stub methods doing nothing).
Definition at line 38 of file ThreadTracker.h.
ThreadTracker::~ThreadTracker | ( | ) | [virtual] |
void ThreadTracker::onThreadStart | ( | ) | [virtual] |
Called in new thread context before thread's body runs.
Reimplemented in JavaThreadTracker, and StatsTimer.
Definition at line 33 of file ThreadTracker.cpp.
Referenced by TimerThread::run(), and ThreadPoolBase::runPooledThread().
void ThreadTracker::onThreadEnd | ( | ) | [virtual] |
Called in thread context after thread's body runs.
Reimplemented in JavaThreadTracker, and StatsTimer.
Definition at line 38 of file ThreadTracker.cpp.
Referenced by TimerThread::run(), and ThreadPoolBase::runPooledThread().
FennelExcn * ThreadTracker::cloneExcn | ( | std::exception & | ex | ) | [virtual] |
Clones an exception so that it can be rethrown in a different thread context.
ex | the excn to be cloned |
Reimplemented in JavaThreadTracker.
Definition at line 43 of file ThreadTracker.cpp.
Referenced by JavaThreadTracker::cloneExcn(), and ParallelExecStreamScheduler::executeTask().
00044 { 00045 return new FennelExcn(ex.what()); 00046 }