DUNE: Uniform Navigational Environment
2.3.2
|
Threads are a way for a program to split itself into two or more simultaneously running tasks.
Public Member Functions | |
Thread (void) | |
virtual | ~Thread (void) |
Public Member Functions inherited from DUNE::Concurrency::Runnable | |
Runnable (void) | |
virtual | ~Runnable (void) |
void | start (void) |
void | stop (void) |
void | join (void) |
void | stopAndJoin (void) |
void | setPriority (Scheduler::Policy policy, unsigned priority) |
State | getState (void) |
bool | isCreated (void) |
bool | isStopping (void) |
bool | isRunning (void) |
bool | isStarting (void) |
bool | isDead (void) |
Static Public Member Functions | |
static unsigned | native (void) |
Protected Member Functions | |
void | startImpl (void) |
void | stopImpl (void) |
void | joinImpl (void) |
void | setPriorityImpl (Scheduler::Policy policy, unsigned priority) |
Protected Member Functions inherited from DUNE::Concurrency::Runnable | |
virtual void | run (void)=0 |
Friends | |
void * | dune_concurrency_thread_entry_point (void *) |
Additional Inherited Members | |
Public Types inherited from DUNE::Concurrency::Runnable | |
enum | State { StateStarting, StateRunning, StateStopping, StateDead, StateUnknown } |
DUNE::Concurrency::Thread::Thread | ( | void | ) |
References DUNE::Concurrency::Runnable::StateUnknown.
|
virtual |
Destructor.
References DUNE::System::Error::getMessage().
|
protectedvirtual |
Implements DUNE::Concurrency::Runnable.
|
static |
Retrieve the platform specific thread identifier of the calling thread.
This feature might not be available in all operating systems.
|
protectedvirtual |
Implements DUNE::Concurrency::Runnable.
References DUNE::Concurrency::Runnable::isRunning(), and DUNE::Concurrency::Scheduler::native().
|
protectedvirtual |
|
protectedvirtual |
Implements DUNE::Concurrency::Runnable.
References DUNE::Concurrency::Runnable::StateStopping.
|
friend |
Referenced by startImpl().