ldas-tools-al 2.6.7
|
Perform a system call within a thread. More...
#include <SystemCallTask.hh>
Public Types | |
typedef boost::shared_ptr< char > | name_type |
typedef boost::shared_ptr< char > | name_type |
typedef boost::shared_ptr< char > | name_type |
typedef Thread::cancel_type | cancel_method |
typedef Thread::cancel_type | cancel_method |
typedef Thread::cancel_type | cancel_method |
typedef Thread::signal_type | signal_type |
Data class for passing signal information. More... | |
typedef Thread::signal_type | signal_type |
Data class for passing signal information. More... | |
typedef Thread::signal_type | signal_type |
Data class for passing signal information. More... | |
Public Member Functions | |
SystemCallTask () | |
Constructor. More... | |
SystemCallTask () | |
Constructor. More... | |
SystemCallTask () | |
Constructor. More... | |
int | SystemErrNo () const |
Return the thread specific value of errno. More... | |
int | SystemErrNo () const |
Return the thread specific value of errno. More... | |
int | SystemErrNo () const |
Return the thread specific value of errno. More... | |
int | SystemReturnCode () const |
Return the return code of the system call. More... | |
int | SystemReturnCode () const |
Return the return code of the system call. More... | |
int | SystemReturnCode () const |
Return the return code of the system call. More... | |
MutexLock::baton_type | Baton () const |
Retrieve baton to gain exclusive access. More... | |
MutexLock::baton_type | Baton () const |
Retrieve baton to gain exclusive access. More... | |
MutexLock::baton_type | Baton () const |
Retrieve baton to gain exclusive access. More... | |
cancel_method | CancelMethod () const |
Retrieve method to use for terminating the task. More... | |
cancel_method | CancelMethod () const |
Retrieve method to use for terminating the task. More... | |
cancel_method | CancelMethod () const |
Retrieve method to use for terminating the task. More... | |
signal_type | CancelSignal () const |
Retrieve signal to use for terminating the task. More... | |
signal_type | CancelSignal () const |
Retrieve signal to use for terminating the task. More... | |
signal_type | CancelSignal () const |
Retrieve signal to use for terminating the task. More... | |
bool | DeleteOnCompletion () const |
Retrieve state information concearning deletion. More... | |
bool | DeleteOnCompletion () const |
Retrieve state information concearning deletion. More... | |
bool | DeleteOnCompletion () const |
Retrieve state information concearning deletion. More... | |
virtual void | OnCompletion (int TaskThreadState) |
Action to be done when task completes. More... | |
virtual void | OnCompletion (int TaskThreadState) |
Action to be done when task completes. More... | |
virtual void | OnCompletion (int TaskThreadState) |
Action to be done when task completes. More... | |
name_type | TaskName () const |
Get the name of the current task. More... | |
name_type | TaskName () const |
Get the name of the current task. More... | |
name_type | TaskName () const |
Get the name of the current task. More... | |
Protected Member Functions | |
virtual int | eval ()=0 |
Action to be performed. More... | |
virtual int | eval ()=0 |
Action to be performed. More... | |
virtual int | eval ()=0 |
Action to be performed. More... | |
void | taskName (const std::string &Name) |
void | taskName (const std::string &Name) |
void | taskName (const std::string &Name) |
void | delete_on_completion (bool Value) |
void | delete_on_completion (bool Value) |
void | delete_on_completion (bool Value) |
Protected Attributes | |
int | m_returnCode |
Return code of the system call. More... | |
int | m_errNo |
Thread specific value of errno at time of exit. More... | |
Private Member Functions | |
virtual void | operator() () |
Setup the running of the system call. More... | |
virtual void | operator() () |
Action to perform. More... | |
virtual void | operator() () |
Action to perform. More... | |
Private Attributes | |
name_type | name |
std::unique_ptr< _p_type > | _p |
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.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Data class for passing signal information.
|
inherited |
Data class for passing signal information.
|
inherited |
Data class for passing signal information.
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.
LDASTools::AL::SystemCallTask::SystemCallTask | ( | ) |
Constructor.
|
inherited |
Retrieve baton to gain exclusive access.
|
inherited |
Retrieve baton to gain exclusive access.
|
inherited |
Retrieve baton to gain exclusive access.
|
inherited |
Retrieve method to use for terminating the task.
|
inherited |
Retrieve method to use for terminating the task.
|
inherited |
Retrieve method to use for terminating the task.
|
inherited |
Retrieve signal to use for terminating the task.
|
inherited |
Retrieve signal to use for terminating the task.
|
inherited |
Retrieve signal to use for terminating the task.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
Retrieve state information concearning deletion.
|
inherited |
Retrieve state information concearning deletion.
|
inherited |
Retrieve state information concearning deletion.
|
protectedpure virtual |
Action to be performed.
Implemented in LDASTools::AL::Directory::Internals.
|
protectedpure virtual |
Action to be performed.
Implemented in LDASTools::AL::Directory::Internals.
|
protectedpure virtual |
Action to be performed.
Implemented in LDASTools::AL::Directory::Internals.
|
virtualinherited |
Action to be done when task completes.
This function is called regardless of why the task was terminated. It allows for any special cleanup or other action that needs to happen at the end of a task regardless of why the task terminated.
|
virtualinherited |
Action to be done when task completes.
|
virtualinherited |
Action to be done when task completes.
|
privatevirtual |
Setup the running of the system call.
Implements LDASTools::AL::Task.
|
privatevirtual |
Action to perform.
Implements LDASTools::AL::Task.
|
privatevirtual |
Action to perform.
Implements LDASTools::AL::Task.
|
inlineinherited |
Return the thread specific value of errno.
|
inherited |
Return the thread specific value of errno.
|
inherited |
Return the thread specific value of errno.
|
inlineinherited |
Return the return code of the system call.
|
inherited |
Return the return code of the system call.
|
inherited |
Return the return code of the system call.
|
inlineinherited |
Get the name of the current task.
|
inherited |
Get the name of the current task.
|
inherited |
Get the name of the current task.
|
inlineprotectedinherited |
|
protectedinherited |
|
protectedinherited |
|
privateinherited |
|
protectedinherited |
Thread specific value of errno at time of exit.
This allows for the thread specific errno value to be known outside of the calling thread. It is most benificial for error recovery as some conditions should cause a retry.
|
protectedinherited |
Return code of the system call.
This is the return code returned by the system call as defined by the system call's documentation.
|
privateinherited |