ldas-tools-al
2.6.3
|
#include <TaskThread.hh>
Public Member Functions | |
TaskThread () | |
virtual | ~TaskThread () |
void | AddTask (Task &TaskToDo) |
void | AddTask (Task *TaskToDo) |
void | CriticalSection (bool) |
bool | Halt () |
MutexLock::baton_type | Mutex () |
enum state_type | State () const |
bool | TimedOut () |
void | TimedWait (int Seconds) |
void | Wait () |
const char * | Type () const |
Task::name_type | Name () const |
TaskThread () | |
virtual | ~TaskThread () |
void | AddTask (Task &TaskToDo) |
void | AddTask (Task *TaskToDo) |
void | CriticalSection (bool) |
bool | Halt () |
MutexLock::baton_type | Mutex () |
enum state_type | State () const |
bool | TimedOut () |
void | TimedWait (int Seconds) |
void | Wait () |
const char * | Type () const |
Task::name_type | Name () const |
TaskThread () | |
virtual | ~TaskThread () |
void | AddTask (Task &TaskToDo) |
void | AddTask (Task *TaskToDo) |
void | CriticalSection (bool) |
bool | Halt () |
MutexLock::baton_type | Mutex () |
enum state_type | State () const |
bool | TimedOut () |
void | TimedWait (int Seconds) |
void | Wait () |
const char * | Type () const |
Task::name_type | Name () const |
virtual void | Cancel () |
virtual void | Cancel () |
virtual void | Cancel () |
void | CancellationCheck (const std::string &Header, const char *File, const int Line) const |
Deliver pending cancellation requests to the calling thread. More... | |
void | CancellationCheck (const std::string &Header, const char *File, const int Line) const |
Deliver pending cancellation requests to the calling thread. More... | |
void | CancellationCheck (const std::string &Header, const char *File, const int Line) const |
Deliver pending cancellation requests to the calling thread. More... | |
void | CancellationEnable (bool Value) |
void | CancellationEnable (bool Value) |
void | CancellationEnable (bool Value) |
cancel_type | CancellationType (signal_type &Signal) const |
Return the type of cancellation. More... | |
void | CancellationType (cancel_type Type, signal_type Signal=SignalHandler::SIGNAL_UNKNOWN) |
Establiosh the type of cancellation. More... | |
cancel_type | CancellationType (signal_type &Signal) const |
Return the type of cancellation. More... | |
void | CancellationType (cancel_type Type, signal_type Signal=SignalHandler::SIGNAL_UNKNOWN) |
Establiosh the type of cancellation. More... | |
cancel_type | CancellationType (signal_type &Signal) const |
Return the type of cancellation. More... | |
void | CancellationType (cancel_type Type, signal_type Signal=SignalHandler::SIGNAL_UNKNOWN) |
Establiosh the type of cancellation. More... | |
void | Detach () const |
void | Detach () const |
void | Detach () const |
virtual void | Join () |
virtual void | Join () |
virtual void | Join () |
bool | IsAlive () const |
bool | IsAlive () const |
bool | IsAlive () const |
bool | IsCancelled () const |
Return the cancellation state of the thread. More... | |
bool | IsCancelled () const |
Return the cancellation state of the thread. More... | |
bool | IsCancelled () const |
Return the cancellation state of the thread. More... | |
bool | IsDetached () const |
Reports detached state. More... | |
bool | IsDetached () const |
Reports detached state. More... | |
bool | IsDetached () const |
Reports detached state. More... | |
bool | IsParentThread () const |
bool | IsParentThread () const |
bool | IsParentThread () const |
int | Kill (signal_type Signal) const |
int | Kill (signal_type Signal) const |
int | Kill (signal_type Signal) const |
thread_type | ParentThread () const |
Retrieve key for parent thread. More... | |
thread_type | ParentThread () const |
Retrieve key for parent thread. More... | |
thread_type | ParentThread () const |
Retrieve key for parent thread. More... | |
virtual int | Spawn () |
virtual int | Spawn () |
virtual int | Spawn () |
void | SignalCapture (signal_type Sig) |
void | SignalCapture (signal_type Sig) |
void | SignalCapture (signal_type Sig) |
void | SignalIgnore (signal_type Sig) |
void | SignalIgnore (signal_type Sig) |
void | SignalIgnore (signal_type Sig) |
bool | operator== (const Thread &Source) const |
bool | operator== (const Thread &Source) const |
bool | operator== (const Thread &Source) const |
Static Public Member Functions | |
static std::string | StateStr (enum state_type Value) |
static std::string | StateStr (enum state_type Value) |
static std::string | StateStr (enum state_type Value) |
static void | SelfCancellationCheck (const std::string &Header, const char *File, const int Line) |
static void | SelfCancellationCheck (const std::string &Header, const char *File, const int Line) |
static void | SelfCancellationCheck (const std::string &Header, const char *File, const int Line) |
static size_t | StackSizeDefault () |
static void | StackSizeDefault (size_t StackSize) |
static size_t | StackSizeDefault () |
static void | StackSizeDefault (size_t StackSize) |
static size_t | StackSizeDefault () |
static void | StackSizeDefault (size_t StackSize) |
Protected Types | |
typedef void *(* | start_function_type) (void *) |
typedef void *(* | start_function_type) (void *) |
typedef void *(* | start_function_type) (void *) |
Protected Member Functions | |
int | spawn (start_function_type StartFunction=(start_function_type) start_routine) |
Spawn a new thread. More... | |
int | spawn (start_function_type StartFunction=(start_function_type) start_routine) |
Spawn a new thread. More... | |
int | spawn (start_function_type StartFunction=(start_function_type) start_routine) |
Spawn a new thread. More... | |
thread_type | threadId () const |
thread_type | threadId () const |
thread_type | threadId () const |
Static Protected Member Functions | |
static void | cancelCleanup (Thread *Source) |
Perform cleanup of a cancelled thread. More... | |
static void | cancelCleanup (Thread *Source) |
Perform cleanup of a cancelled thread. More... | |
static void | cancelCleanup (Thread *Source) |
Perform cleanup of a cancelled thread. More... | |
Private Member Functions | |
virtual void | action () |
TaskThread (const TaskThread &Source) | |
TaskThread & | operator= (const TaskThread &Source) |
virtual void | action () |
Job to be acomplished by the thread. More... | |
TaskThread (const TaskThread &Source) | |
TaskThread & | operator= (const TaskThread &Source) |
virtual void | action () |
Job to be acomplished by the thread. More... | |
TaskThread (const TaskThread &Source) | |
TaskThread & | operator= (const TaskThread &Source) |
Private Attributes | |
bool | m_done |
ConditionalVariable | m_task_available |
Task * | m_task |
const char * | m_task_type_name |
Task::name_type | task_name |
cancel_method | m_cancel_method |
task_signal_type | m_cancel_signal |
state_type | m_state |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |
LDASTools::AL::TaskThread::TaskThread | ( | ) |
|
virtual |
|
private |
LDASTools::AL::TaskThread::TaskThread | ( | ) |
|
virtual |
|
private |
LDASTools::AL::TaskThread::TaskThread | ( | ) |
|
virtual |
|
private |
|
privatevirtual |
This method does the work of the thread and runs in the conrtolled thread. It does a task and then waits for another task. This allows for the thread to be reused.
Implements LDASTools::AL::Thread.
|
privatevirtual |
Job to be acomplished by the thread.
Implements LDASTools::AL::Thread.
|
privatevirtual |
Job to be acomplished by the thread.
Implements LDASTools::AL::Thread.
|
inline |
void LDASTools::AL::TaskThread::AddTask | ( | Task & | TaskToDo | ) |
void LDASTools::AL::TaskThread::AddTask | ( | Task & | TaskToDo | ) |
void LDASTools::AL::TaskThread::AddTask | ( | Task * | TaskToDo | ) |
void LDASTools::AL::TaskThread::AddTask | ( | Task * | TaskToDo | ) |
void LDASTools::AL::TaskThread::AddTask | ( | Task * | TaskToDo | ) |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
staticprotectedinherited |
Perform cleanup of a cancelled thread.
[in] | Source | The thread being cancelled. |
|
staticprotectedinherited |
Perform cleanup of a cancelled thread.
[in] | Source | The thread being cancelled. |
|
staticprotectedinherited |
Perform cleanup of a cancelled thread.
[in] | Source | The thread being cancelled. |
|
inherited |
Deliver pending cancellation requests to the calling thread.
[in] | Header | Description of the method from which the request was made |
[in] | File | Filename from where the request was made. |
[in] | Line | Line number in Filename from where the request was made. |
Deliver any pending cancellation requests to the calling thread. If cancellation is to be done via exception, then a cancellation exception is throw. If not, then a call to the appropriate thread library's cancellation routine is made.
|
inherited |
Deliver pending cancellation requests to the calling thread.
[in] | Header | Description of the method from which the request was made |
[in] | File | Filename from where the request was made. |
[in] | Line | Line number in Filename from where the request was made. |
|
inherited |
Deliver pending cancellation requests to the calling thread.
[in] | Header | Description of the method from which the request was made |
[in] | File | Filename from where the request was made. |
[in] | Line | Line number in Filename from where the request was made. |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Return the type of cancellation.
[out] | Signal | Any auxiliary information associated with the cancellation type |
|
inherited |
Return the type of cancellation.
[out] | Signal | Any auxiliary information associated with the cancellation type |
|
inherited |
Return the type of cancellation.
[out] | Signal | Any auxiliary information associated with the cancellation type |
|
inherited |
Establiosh the type of cancellation.
[in] | Type | The type of cancellation. |
[in] | Signal | Any auxiliary information associated with the cancellation type. |
Sets a how a thread can be cancelled.
|
inherited |
Establiosh the type of cancellation.
[in] | Type | The type of cancellation. |
[in] | Signal | Any auxiliary information associated with the cancellation type. |
|
inherited |
Establiosh the type of cancellation.
[in] | Type | The type of cancellation. |
[in] | Signal | Any auxiliary information associated with the cancellation type. |
void LDASTools::AL::TaskThread::CriticalSection | ( | bool | ) |
void LDASTools::AL::TaskThread::CriticalSection | ( | bool | IsCriticalSection | ) |
void LDASTools::AL::TaskThread::CriticalSection | ( | bool | ) |
|
inherited |
|
inherited |
|
inherited |
bool LDASTools::AL::TaskThread::Halt | ( | ) |
bool LDASTools::AL::TaskThread::Halt | ( | ) |
bool LDASTools::AL::TaskThread::Halt | ( | ) |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Return the cancellation state of the thread.
|
inherited |
Return the cancellation state of the thread.
|
inherited |
Return the cancellation state of the thread.
|
inherited |
Reports detached state.
|
inherited |
Reports detached state.
|
inherited |
Reports detached state.
|
inherited |
|
inherited |
|
inherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
inherited |
|
inherited |
|
inherited |
MutexLock::baton_type LDASTools::AL::TaskThread::Mutex | ( | ) |
MutexLock::baton_type LDASTools::AL::TaskThread::Mutex | ( | ) |
|
inline |
Task::name_type LDASTools::AL::TaskThread::Name | ( | ) | const |
Task::name_type LDASTools::AL::TaskThread::Name | ( | ) | const |
|
inline |
|
private |
|
private |
|
private |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
Retrieve key for parent thread.
|
inherited |
Retrieve key for parent thread.
|
inherited |
Retrieve key for parent thread.
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
protectedinherited |
Spawn a new thread.
[in] | StartFunction | The routine for the new thread to start. |
|
protectedinherited |
Spawn a new thread.
[in] | StartFunction | The routine for the new thread to start. |
|
protectedinherited |
Spawn a new thread.
[in] | StartFunction | The routine for the new thread to start. |
|
staticinherited |
|
staticinherited |
|
inlinestaticinherited |
|
staticinherited |
|
staticinherited |
Establish the default value of the stack size used when creating new threads. This routine does validate the requested value..
|
staticinherited |
enum state_type LDASTools::AL::TaskThread::State | ( | ) | const |
enum state_type LDASTools::AL::TaskThread::State | ( | ) | const |
|
inline |
|
static |
|
static |
|
static |
|
protectedinherited |
|
inlineprotectedinherited |
|
protectedinherited |
bool LDASTools::AL::TaskThread::TimedOut | ( | ) |
bool LDASTools::AL::TaskThread::TimedOut | ( | ) |
|
inline |
void LDASTools::AL::TaskThread::TimedWait | ( | int | Seconds | ) |
void LDASTools::AL::TaskThread::TimedWait | ( | int | Seconds | ) |
void LDASTools::AL::TaskThread::TimedWait | ( | int | Seconds | ) |
|
inline |
const char* LDASTools::AL::TaskThread::Type | ( | ) | const |
const char* LDASTools::AL::TaskThread::Type | ( | ) | const |
void LDASTools::AL::TaskThread::Wait | ( | ) |
void LDASTools::AL::TaskThread::Wait | ( | ) |
void LDASTools::AL::TaskThread::Wait | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |