dmlite::dmTask Class Reference

#include <TaskExec.h>

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

List of all members.

Public Member Functions

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

Public Attributes

int key
std::string cmd
const char * parms [64]
int resultcode
time_t starttime
time_t endtime
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);

const char* dmlite::dmTask::parms[64]

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

Generated on 24 Sep 2019 for dmlite by  doxygen 1.6.1