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

◆ dmTask() [1/2]

dmlite::dmTask::dmTask ( dmTaskExec wheretolog)

◆ dmTask() [2/2]

dmlite::dmTask::dmTask ( const dmTask o)
inline

◆ ~dmTask()

dmlite::dmTask::~dmTask ( )

Member Function Documentation

◆ notifyAll()

void dmlite::dmTask::notifyAll ( )
inline

◆ splitCmd()

void dmlite::dmTask::splitCmd ( )

Split che command string into the single parms.

◆ waitFinished()

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

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

Member Data Documentation

◆ cmd

std::string dmlite::dmTask::cmd

◆ condvar

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);

◆ endtime

time_t dmlite::dmTask::endtime

◆ fd

int dmlite::dmTask::fd[3]

◆ finished

bool dmlite::dmTask::finished

◆ key

int dmlite::dmTask::key

◆ loggerinst

dmTaskExec* dmlite::dmTask::loggerinst

◆ parms

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

◆ pid

pid_t dmlite::dmTask::pid

◆ resultcode

int dmlite::dmTask::resultcode

◆ running

bool dmlite::dmTask::running

◆ starttime

time_t dmlite::dmTask::starttime

◆ stdout

std::string dmlite::dmTask::stdout

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