ThreadTracker Class Reference

ThreadTracker defines an interface for receiving callbacks before and after a thread runs. More...

#include <ThreadTracker.h>

Inheritance diagram for ThreadTracker:

JavaThreadTracker TimerThreadClient CacheImpl< PageT, VictimPolicyT > StatsTimer List of all members.

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 FennelExcncloneExcn (std::exception &ex)
 Clones an exception so that it can be rethrown in a different thread context.

Detailed Description

ThreadTracker defines an interface for receiving callbacks before and after a thread runs.

The default implementation is a dummy (stub methods doing nothing).

Author:
John Sichi
Version:
Id
//open/dev/fennel/synch/ThreadTracker.h#5

Definition at line 38 of file ThreadTracker.h.


Constructor & Destructor Documentation

ThreadTracker::~ThreadTracker (  )  [virtual]

Definition at line 29 of file ThreadTracker.cpp.

00030 {
00031 }


Member Function Documentation

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().

00034 {
00035     // do nothing by default
00036 }

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().

00039 {
00040     // do nothing by default
00041 }

FennelExcn * ThreadTracker::cloneExcn ( std::exception &  ex  )  [virtual]

Clones an exception so that it can be rethrown in a different thread context.

Parameters:
ex the excn to be cloned
Returns:
cloned excn

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 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 22 04:00:48 2009 for Fennel by  doxygen 1.5.1