
Public Member Functions | |
| ThreadBase () | |
| Default constructor. | |
| void | Start () |
| Starts the thread. | |
| void | Stop () |
| Requests the thread to stop. | |
Protected Member Functions | |
| abstract void | Run () |
| The actual function performed in the thread. | |
Protected Attributes | |
| System.Threading.Thread | thread |
| The actual thread. | |
Properties | |
| bool | Stopped [get, set] |
true if the thread has been requested to stop, false otherwise. | |
Provides a safe, cooperative thread interruption mechanism. TODO: Rename!
| DotNX::Core::ThreadBase::ThreadBase | ( | ) |
Default constructor.
| abstract void DotNX::Core::ThreadBase::Run | ( | ) | [protected, pure virtual] |
The actual function performed in the thread.
While inheritance may not be as versatile as taking a generic callable argument, it helps distinguish what belongs to the spawned thread and what doesn't.
| void DotNX::Core::ThreadBase::Start | ( | ) |
| void DotNX::Core::ThreadBase::Stop | ( | ) |
Requests the thread to stop.
System.Threading.Thread DotNX::Core::ThreadBase::thread [protected] |
The actual thread.
bool DotNX::Core::ThreadBase::Stopped [get, set, protected] |
true if the thread has been requested to stop, false otherwise.