Perform a system call within a thread.
More...
#include <SystemCallTask.hh>
|
typedef Thread::signal_type | signal_type |
| Data class for passing signal information.
|
|
typedef Thread::signal_type | signal_type |
| Data class for passing signal information.
|
|
typedef Thread::signal_type | signal_type |
| Data class for passing signal information.
|
|
|
virtual int | eval ()=0 |
| Action to be performed.
|
|
virtual int | eval ()=0 |
| Action to be performed.
|
|
virtual int | eval ()=0 |
| Action to be performed.
|
|
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.
◆ SystemCallTask()
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.
◆ CancelMethod() [1/3]
Task::cancel_method LDASTools::AL::Task::CancelMethod |
( |
| ) |
const |
|
inherited |
Retrieve method to use for terminating the task.
- Returns
- The method to be used to terminate the task.
◆ CancelMethod() [2/3]
cancel_method LDASTools::AL::Task::CancelMethod |
( |
| ) |
const |
|
inherited |
Retrieve method to use for terminating the task.
- Returns
- The method to be used to terminate the task.
◆ CancelMethod() [3/3]
cancel_method LDASTools::AL::Task::CancelMethod |
( |
| ) |
const |
|
inherited |
Retrieve method to use for terminating the task.
- Returns
- The method to be used to terminate the task.
◆ CancelSignal() [1/3]
Retrieve signal to use for terminating the task.
- Returns
- The signal to be used to terminate the task.
◆ CancelSignal() [2/3]
signal_type LDASTools::AL::Task::CancelSignal |
( |
| ) |
const |
|
inherited |
Retrieve signal to use for terminating the task.
- Returns
- The signal to be used to terminate the task.
◆ CancelSignal() [3/3]
signal_type LDASTools::AL::Task::CancelSignal |
( |
| ) |
const |
|
inherited |
Retrieve signal to use for terminating the task.
- Returns
- The signal to be used to terminate the task.
◆ DeleteOnCompletion() [1/3]
bool LDASTools::AL::Task::DeleteOnCompletion |
( |
| ) |
const |
|
inherited |
Retrieve state information concearning deletion.
- Returns
- True if the task should be deleted once terminated.
◆ DeleteOnCompletion() [2/3]
bool LDASTools::AL::Task::DeleteOnCompletion |
( |
| ) |
const |
|
inherited |
Retrieve state information concearning deletion.
- Returns
- True if the task should be deleted once terminated.
◆ DeleteOnCompletion() [3/3]
bool LDASTools::AL::Task::DeleteOnCompletion |
( |
| ) |
const |
|
inherited |
Retrieve state information concearning deletion.
- Returns
- True if the task should be deleted once terminated.
◆ OnCompletion()
void LDASTools::AL::Task::OnCompletion |
( |
int |
TaskThreadState | ) |
|
|
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.
◆ m_errNo
int LDASTools::AL::SystemCall::m_errNo |
|
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.
◆ m_returnCode
int LDASTools::AL::SystemCall::m_returnCode |
|
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.
The documentation for this class was generated from the following files:
- /build/ldas-tools-al-2.6.5/debian/tmp/usr/include/ldastoolsal/SystemCallTask.hh
- /build/ldas-tools-al-2.6.5/src/SystemCallTask.cc