Perform a system call within a thread. More...
#include <SystemCallTask.hh>
Public Member Functions | |
SystemCallTask () | |
Constructor. | |
SystemCallTask () | |
Constructor. | |
Protected Member Functions | |
virtual int | eval ()=0 |
Action to be performed. | |
virtual int | eval ()=0 |
Action to be performed. | |
Private Member Functions | |
virtual void | operator() () |
Setup the running of the system call. | |
virtual void | operator() () |
Action to perform. | |
Perform a system call within a thread.
This is an abstract class that should be used as the base for a class that is to perform some system call usually within a thread.
LDASTools::AL::SystemCallTask::SystemCallTask | ( | ) |
Constructor.
Because system calls can be very peristant within a thread context, system calls are set up to background without a reaper to prevent resource starvation for the rest of the code.
LDASTools::AL::SystemCallTask::SystemCallTask | ( | ) |
Constructor.
|
protectedpure virtual |
Action to be performed.
|
protectedpure virtual |
Action to be performed.
|
privatevirtual |
Setup the running of the system call.
Implements LDASTools::AL::Task.
|
privatevirtual |
Action to perform.
Implements LDASTools::AL::Task.