#include <Thread.hh>
◆ cleanup_function_type
typedef void(* LDASTools::AL::Thread::cleanup_function_type) (void *) |
◆ signal_type
◆ start_function_type
typedef void *(* LDASTools::AL::Thread::start_function_type) (void *) |
|
protected |
◆ cancel_type
Enumerator |
---|
CANCEL_ABANDON | |
CANCEL_IGNORE | |
CANCEL_ASYNCHRONOUS | |
CANCEL_DEFERRED | |
CANCEL_EXCEPTION | |
CANCEL_BY_SIGNAL | |
CANCEL_UNKNOWN | |
◆ Thread()
LDASTools::AL::Thread::Thread |
( |
| ) |
|
◆ ~Thread()
LDASTools::AL::Thread::~Thread |
( |
| ) |
|
|
virtual |
◆ action()
virtual void LDASTools::AL::Thread::action |
( |
| ) |
|
|
protectedpure virtual |
◆ Cancel()
void LDASTools::AL::Thread::Cancel |
( |
| ) |
|
|
virtual |
◆ cancelCleanup()
void LDASTools::AL::Thread::cancelCleanup |
( |
Thread * |
Source | ) |
|
|
staticprotected |
Perform cleanup of a cancelled thread.
- Parameters
-
[in] | Source | The thread being cancelled. |
◆ cancellation_enable()
void LDASTools::AL::Thread::cancellation_enable |
( |
bool |
Value | ) |
|
|
private |
Establish the cancellability of a thread. If a Value of true is passed, then the thread will allow cancellation as determined by the call to CancellationType.
- Note
- This call must only be made by a child thread.
- See also
- CancellationType
◆ CancellationCheck()
void LDASTools::AL::Thread::CancellationCheck |
( |
const std::string & |
Header, |
|
|
const char * |
File, |
|
|
const int |
Line |
|
) |
| const |
Deliver pending cancellation requests to the calling thread.
- Parameters
-
[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.
- Note
- This call must only be made by a child thread.
◆ CancellationEnable()
void LDASTools::AL::Thread::CancellationEnable |
( |
bool |
Value | ) |
|
◆ CancellationType() [1/2]
Establiosh the type of cancellation.
- Parameters
-
[in] | Type | The type of cancellation. |
[in] | Signal | Any auxiliary information associated with the cancellation type. |
Sets a how a thread can be cancelled.
-
CANCEL_ASYNCHRONOUS A cancellation request is immediated delivered to the thread.
-
CANCEL_DEFERRED A cancellation request is marked pending for the thread and the thread is cancelled when it gets to a system cancellation point or when CancellationCheck is called.
-
CANCEL_EXCEPTION A cancellation request is marked pending for the thread and the thread throws a cancellation exception upon calling CancellationCheck.
- Note
- This call must only be made by a chivld thread.
- See also
- CancellationEnable, CancellationCheck
◆ CancellationType() [2/2]
Return the type of cancellation.
- Parameters
-
[out] | Signal | Any auxiliary information associated with the cancellation type |
- Returns
- The type of cancellation.
- See also
- cancel_type
◆ Detach()
void LDASTools::AL::Thread::Detach |
( |
| ) |
const |
◆ IsAlive()
bool LDASTools::AL::Thread::IsAlive |
( |
| ) |
const |
◆ IsCancelled()
bool LDASTools::AL::Thread::IsCancelled |
( |
| ) |
const |
Return the cancellation state of the thread.
- Returns
- Returns true if the thread has been cancelled, false otherwise.
◆ IsDetached()
bool LDASTools::AL::Thread::IsDetached |
( |
| ) |
const |
Reports detached state.
- Returns
- Returns true if the thread has been detached, false otherwise
◆ IsParentThread()
bool LDASTools::AL::Thread::IsParentThread |
( |
| ) |
const |
◆ Join()
void LDASTools::AL::Thread::Join |
( |
| ) |
|
|
virtual |
◆ Kill()
◆ operator==()
bool LDASTools::AL::Thread::operator== |
( |
const Thread & |
Source | ) |
const |
◆ ParentThread()
Thread::thread_type LDASTools::AL::Thread::ParentThread |
( |
| ) |
const |
|
inline |
Retrieve key for parent thread.
◆ SelfCancellationCheck()
static void LDASTools::AL::Thread::SelfCancellationCheck |
( |
const std::string & |
Header, |
|
|
const char * |
File, |
|
|
const int |
Line |
|
) |
| |
|
static |
◆ set_cancelled_state()
void LDASTools::AL::Thread::set_cancelled_state |
( |
| ) |
|
|
private |
◆ SignalCapture()
◆ SignalIgnore()
◆ Spawn()
int LDASTools::AL::Thread::Spawn |
( |
| ) |
|
|
virtual |
◆ spawn()
Spawn a new thread.
- Parameters
-
[in] | StartFunction | The routine for the new thread to start. |
◆ StackSizeDefault() [1/2]
size_t LDASTools::AL::Thread::StackSizeDefault |
( |
| ) |
|
|
inlinestatic |
◆ StackSizeDefault() [2/2]
void LDASTools::AL::Thread::StackSizeDefault |
( |
size_t |
StackSize | ) |
|
|
static |
Establish the default value of the stack size used when creating new threads. This routine does validate the requested value..
◆ start_routine()
Thread * LDASTools::AL::Thread::start_routine |
( |
Thread * |
ThreadSource | ) |
|
|
staticprivate |
◆ threadId()
Thread::thread_type LDASTools::AL::Thread::threadId |
( |
| ) |
const |
|
inlineprotected |
◆ detached
bool LDASTools::AL::Thread::detached |
|
mutableprivate |
◆ m_cancel_state
bool LDASTools::AL::Thread::m_cancel_state |
|
mutableprivate |
Enable or disable the cancellability of a thread.
◆ m_cancel_thread
bool LDASTools::AL::Thread::m_cancel_thread |
|
mutableprivate |
Conditional state of thread being cancelled.
◆ m_cancel_via_signal
Signal to use for cancelation.
◆ m_cancellation_type
Method used for thread cancellation.
boost::shared_ptr< impl > LDASTools::AL::Thread::p |
|
private |
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.4/src/Thread.hh
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.4/src/Thread.cc