PixelLightAPI
.
|
Abstract base class for platform specific 'Thread' implementations. More...
#include <ThreadImpl.h>
Protected Member Functions | |
ThreadImpl (Thread &cThread) | |
Constructor. | |
virtual | ~ThreadImpl () |
Destructor. | |
Thread & | GetThread () const |
Returns a reference to the owning thread. | |
virtual handle | GetID () const =0 |
Returns the unique system ID of the thread. | |
virtual bool | IsActive () const =0 |
Returns whether the thread is active. | |
virtual bool | Start ()=0 |
Starts the execution of the thread. | |
virtual bool | Terminate ()=0 |
Stops the execution of the thread. | |
virtual bool | Join ()=0 |
Waits until the thread has been stopped. | |
virtual bool | Join (uint64 nTimeout)=0 |
Waits until the thread has been stopped. | |
virtual uint32 | GetPriorityClass () const =0 |
Returns the priority class the thread is in. | |
virtual bool | SetPriorityClass (uint32 nPriorityClass)=0 |
Sets the priority class the thread is in. | |
virtual uint32 | GetPriority () const =0 |
Returns the thread priority within the priority class it is in. | |
virtual bool | SetPriority (uint32 nPriority)=0 |
Sets the thread priority within the priority class it is in. |
Abstract base class for platform specific 'Thread' implementations.
PLCore::ThreadImpl::ThreadImpl | ( | Thread & | cThread | ) | [protected] |
[in] | cThread | Reference to the owning thread |
virtual PLCore::ThreadImpl::~ThreadImpl | ( | ) | [protected, virtual] |
Destructor.
Thread& PLCore::ThreadImpl::GetThread | ( | ) | const [protected] |
Returns a reference to the owning thread.
virtual handle PLCore::ThreadImpl::GetID | ( | ) | const [protected, pure virtual] |
Returns the unique system ID of the thread.
virtual bool PLCore::ThreadImpl::IsActive | ( | ) | const [protected, pure virtual] |
Returns whether the thread is active.
virtual bool PLCore::ThreadImpl::Start | ( | ) | [protected, pure virtual] |
Starts the execution of the thread.
virtual bool PLCore::ThreadImpl::Terminate | ( | ) | [protected, pure virtual] |
Stops the execution of the thread.
virtual bool PLCore::ThreadImpl::Join | ( | ) | [protected, pure virtual] |
Waits until the thread has been stopped.
virtual bool PLCore::ThreadImpl::Join | ( | uint64 | nTimeout | ) | [protected, pure virtual] |
Waits until the thread has been stopped.
[in] | nTimeout | Time in milliseconds to wait |
virtual uint32 PLCore::ThreadImpl::GetPriorityClass | ( | ) | const [protected, pure virtual] |
Returns the priority class the thread is in.
virtual bool PLCore::ThreadImpl::SetPriorityClass | ( | uint32 | nPriorityClass | ) | [protected, pure virtual] |
Sets the priority class the thread is in.
[in] | nPriorityClass | New priority class the thread is in (type: Thread::EPriorityClass) |
virtual uint32 PLCore::ThreadImpl::GetPriority | ( | ) | const [protected, pure virtual] |
Returns the thread priority within the priority class it is in.
virtual bool PLCore::ThreadImpl::SetPriority | ( | uint32 | nPriority | ) | [protected, pure virtual] |
Sets the thread priority within the priority class it is in.
[in] | nPriority | New thread priority within the priority class it is in (type: Thread::EPriority) |
|