Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ChkptWorker Class Reference

#include <CacheS.H>

List of all members.

Public Member Functions

 ChkptWorker (const FP::Tag &pkgVersion, Model::T model, CacheEntry::Indices *cis, bool done) throw ()
void Init (const FP::Tag &pkgVersion, Model::T model, CacheEntry::Indices *cis, bool done) throw ()
void Reset () throw ()
void WaitUntilDone () throw ()

Static Public Member Functions

static void * MainLoop (void *arg) throw ()

Public Attributes

ChkptWorkernext

Private Attributes

FP::Tag pkgVersion
Model::T model
CacheEntry::Indicescis
bool done
Basics::mutex mu
bool chkptComplete
Basics::cond isDone


Constructor & Destructor Documentation

ChkptWorker::ChkptWorker const FP::Tag pkgVersion,
Model::T  model,
CacheEntry::Indices cis,
bool  done
throw () [inline]
 

Definition at line 723 of file CacheS.H.


Member Function Documentation

void ChkptWorker::Init const FP::Tag pkgVersion,
Model::T  model,
CacheEntry::Indices cis,
bool  done
throw ()
 

Definition at line 1453 of file CacheS.C.

Referenced by CacheS::QueueChkpt().

void * ChkptWorker::MainLoop void *  arg  )  throw () [static]
 

Definition at line 1331 of file CacheS.C.

References CacheS::availChkptWorkers, chkptComplete, CacheS::chkptMu, cis, CacheS::DoCheckpoint(), done, CacheS::FinishChkpt(), isDone, Basics::mutex::lock(), model, mu, next, pkgVersion, CacheS::queuedChkptWorkers, Reset(), Basics::cond::signal(), Basics::mutex::unlock(), Basics::cond::wait(), and CacheS::waitingChkptWorker.

Referenced by CacheS::CacheS().

void ChkptWorker::Reset  )  throw ()
 

Definition at line 1464 of file CacheS.C.

References cis.

Referenced by MainLoop().

void ChkptWorker::WaitUntilDone  )  throw ()
 

Definition at line 1469 of file CacheS.C.

References isDone, Basics::mutex::lock(), mu, Basics::mutex::unlock(), and Basics::cond::wait().

Referenced by CacheS::Checkpoint().


Member Data Documentation

bool ChkptWorker::chkptComplete [private]
 

Definition at line 754 of file CacheS.H.

Referenced by MainLoop().

CacheEntry::Indices* ChkptWorker::cis [private]
 

Definition at line 749 of file CacheS.H.

Referenced by MainLoop(), and Reset().

bool ChkptWorker::done [private]
 

Definition at line 750 of file CacheS.H.

Referenced by MainLoop().

Basics::cond ChkptWorker::isDone [private]
 

Definition at line 755 of file CacheS.H.

Referenced by MainLoop(), and WaitUntilDone().

Model::T ChkptWorker::model [private]
 

Definition at line 748 of file CacheS.H.

Referenced by MainLoop().

Basics::mutex ChkptWorker::mu [private]
 

Definition at line 753 of file CacheS.H.

Referenced by MainLoop(), and WaitUntilDone().

ChkptWorker* ChkptWorker::next
 

Definition at line 743 of file CacheS.H.

Referenced by MainLoop(), and CacheS::QueueChkpt().

FP::Tag ChkptWorker::pkgVersion [private]
 

Definition at line 747 of file CacheS.H.

Referenced by MainLoop().


The documentation for this class was generated from the following files:
Generated on Mon May 8 00:49:08 2006 for Vesta by  doxygen 1.4.2