ProcessExecutor Class Reference

#include <process_executor.h>

Inheritance diagram for ProcessExecutor:
Executor zmm::Object

Public Member Functions

 ProcessExecutor (zmm::String command, zmm::Ref< zmm::Array< zmm::StringBase > > arglist)
virtual bool isAlive ()
 method to check if the executor is still running
virtual bool kill ()
 kill the executor
virtual int getStatus ()
 get the status, exit or return code of the executor
virtual ~ProcessExecutor ()
void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

static void * operator new (size_t size)
static void operator delete (void *ptr)

Protected Attributes

pid_t process_id
int exit_status
mt_atomic_t _ref_count
pthread_mutex_t mutex

Detailed Description

Definition at line 37 of file process_executor.h.


Constructor & Destructor Documentation

ProcessExecutor::ProcessExecutor ( zmm::String  command,
zmm::Ref< zmm::Array< zmm::StringBase > >  arglist 
)
ProcessExecutor::~ProcessExecutor (  )  [virtual]

Definition at line 96 of file process_executor.cc.

References kill().


Member Function Documentation

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

References zmm::Object::_ref_count, and atomic_get().

int ProcessExecutor::getStatus (  )  [virtual]

get the status, exit or return code of the executor

Returns:
the status, exit or return code. 0 for normal shutdown

Implements Executor.

Definition at line 90 of file process_executor.cc.

References exit_status, is_alive(), and process_id.

bool ProcessExecutor::isAlive (  )  [virtual]

method to check if the executor is still running

Returns:
true if the executor is still running, false otherwise

Implements Executor.

Definition at line 80 of file process_executor.cc.

References exit_status, is_alive(), and process_id.

bool ProcessExecutor::kill (  )  [virtual]

kill the executor

Returns:
true if the executor was killed successfully, false otherwise

Implements Executor.

Definition at line 85 of file process_executor.cc.

References kill_proc(), and process_id.

Referenced by ~ProcessExecutor().

void Object::operator delete ( void *  ptr  )  [static, inherited]

Definition at line 87 of file object.cc.

References FREE.

void * Object::operator new ( size_t  size  )  [static, inherited]

Definition at line 83 of file object.cc.

References MALLOC.

void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]

Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]

Definition at line 49 of file process_executor.h.

Referenced by getStatus(), isAlive(), and ProcessExecutor().

pthread_mutex_t zmm::Object::mutex [protected, inherited]
pid_t ProcessExecutor::process_id [protected]

Definition at line 48 of file process_executor.h.

Referenced by getStatus(), isAlive(), kill(), and ProcessExecutor().


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

Generated on Fri Mar 26 20:16:57 2010 for MediaTomb by  doxygen 1.6.1