dmlite  0.6
Public Member Functions | Public Attributes | Protected Attributes | List of all members
dmlite::dmTask Class Reference

#include <TaskExec.h>

Inheritance diagram for dmlite::dmTask:
Inheritance graph
[legend]
Collaboration diagram for dmlite::dmTask:
Collaboration graph
[legend]

Public Member Functions

 dmTask (dmTaskExec *wheretolog)
 
 dmTask (const dmTask &o)
 
 ~dmTask ()
 
void splitCmd ()
 Split che command string into the single parms. More...
 
int waitFinished (int tmout=5)
 Wait until the task has finished or the timeout is expired. More...
 
void notifyAll ()
 

Public Attributes

int key
 
std::string cmd
 
const char * parms [64]
 
int resultcode
 
time_t starttime
 
time_t endtime
 
bool running
 
bool finished
 
int fd [3]
 
pid_t pid
 
std::string stdout
 
dmTaskExecloggerinst
 

Protected Attributes

boost::condition_variable condvar
 

Constructor & Destructor Documentation

dmlite::dmTask::dmTask ( dmTaskExec wheretolog)
dmlite::dmTask::dmTask ( const dmTask o)
inline
dmlite::dmTask::~dmTask ( )

Member Function Documentation

void dmlite::dmTask::notifyAll ( )
inline
void dmlite::dmTask::splitCmd ( )

Split che command string into the single parms.

int dmlite::dmTask::waitFinished ( int  tmout = 5)

Wait until the task has finished or the timeout is expired.

Member Data Documentation

std::string dmlite::dmTask::cmd
boost::condition_variable dmlite::dmTask::condvar
protected

Threads waiting for result about this task will wait and synchronize here using something like boost::lock_guard< boost::mutex > l(workmutex);

time_t dmlite::dmTask::endtime
int dmlite::dmTask::fd[3]
bool dmlite::dmTask::finished
int dmlite::dmTask::key
dmTaskExec* dmlite::dmTask::loggerinst
const char* dmlite::dmTask::parms[64]
pid_t dmlite::dmTask::pid
int dmlite::dmTask::resultcode
bool dmlite::dmTask::running
time_t dmlite::dmTask::starttime
std::string dmlite::dmTask::stdout

The documentation for this class was generated from the following file: