#include <TaskProgressManager.hpp>
Collaboration diagram for TaskProgressManager:
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 |
AlternateReportManager * | alternateReportManager |
Private Types | |
typedef TaskInProgress | Task |
Private Attributes | |
pthread_t | thread |
pthread_mutex_t | mutex |
double | refTime |
double | sampleDelay |
double | reportDelay |
bool | running |
bool | reportTotalTime |
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.