![]() |
TerraLib 4.1
|
#include <TeThread.h>
Public Member Functions | |
| TeThread () | |
| Default constructor. | |
| virtual | ~TeThread () |
| Virtual destructor. | |
| bool | start () |
| Starts the current thread. | |
| TeThreadStatus | getStatus () const |
| Gets the current thread status. | |
| TeThreadPriority | getPriority () const |
| Returns the current thread priority. | |
| bool | setPriority (TeThreadPriority newPriority) |
| Changes the current thread priority. | |
| bool | waitToFinish () |
| Block the current thread until the thread handled by this instance terminates. | |
Protected Member Functions | |
| virtual void | run ()=0 |
| Thread execution method: this method will be called when the thread starts. Subclasses must reimplement it. | |
Protected Attributes | |
| volatile TeThreadStatus | threadStatus_ |
| The current thread status variable. | |
| volatile TeThreadPriority | threadCurrPriority_ |
| The current thread priority. | |
| TeThread::TeThread | ( | ) |
Default constructor.
| TeThread::~TeThread | ( | ) | [virtual] |
Virtual destructor.
| TeThreadPriority TeThread::getPriority | ( | ) | const |
Returns the current thread priority.
| TeThreadStatus TeThread::getStatus | ( | ) | const |
Gets the current thread status.
| virtual void TeThread::run | ( | ) | [protected, pure virtual] |
Thread execution method: this method will be called when the thread starts. Subclasses must reimplement it.
Implemented in TePDICorrelationMatching::CorrThread, TePDISAMClassifier::SegThread, and TeThreadFunctor.
| bool TeThread::setPriority | ( | TeThreadPriority | newPriority | ) |
Changes the current thread priority.
| newPriority | The new thread priority. |
| bool TeThread::start | ( | ) |
Starts the current thread.
| bool TeThread::waitToFinish | ( | ) |
Block the current thread until the thread handled by this instance terminates.
volatile TeThreadPriority TeThread::threadCurrPriority_ [protected] |
The current thread priority.
volatile TeThreadStatus TeThread::threadStatus_ [protected] |
The current thread status variable.