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

TaskProgressManager Class Reference

Main progress tracking class. More...

#include <TaskProgressManager.hpp>

Collaboration diagram for TaskProgressManager:

Collaboration graph
List of all members.

Public Member Functions

void CleanLine ()
void NewTask (Task *task)
void EndTask (const Task *task)
void ReportTotalTime (bool _reportTotalTime=true)
void SetAlternateReportManager (AlternateReportManager *_alternateReportManager)
void Start ()
void Stop ()
 TaskProgressManager (double sampleDelay, double reportDelay)

Protected Member Functions

void Report (int taskNum)
void Lock ()
void UnLock ()
void CheckTasks ()
void Run ()

Static Protected Member Functions

static void * EntryPoint (void *arg)

Protected Attributes

int dirtyLine
vector< Task * > tasks

Private Types

typedef TaskInProgress Task

Private Attributes

pthread_t thread
pthread_mutex_t mutex
double refTime
double sampleDelay
double reportDelay
bool running
bool reportTotalTime

Detailed Description

Main progress tracking class.

It creates a thread that periodically checks if there are tasks that need reporting. It keeps a list of nested tasks.

Definition at line 112 of file TaskProgressManager.hpp.

The documentation for this class was generated from the following files:
Generated on Fri Jun 17 13:36:20 2005 for ImLib3D by  doxygen 1.4.2