#include <thread.h>

Public Member Functions | |
| virtual | ~ThreadObject () |
| Virtual destructor to allow 'delete' operator to work properly. | |
| virtual bool | IsRunning ()=0 |
| Check if the thread is currently running. | |
| virtual bool | WaitForStop ()=0 |
| Waits for the thread to exit. | |
| virtual bool | Exit ()=0 |
| Exit this thread. | |
| virtual void | Join ()=0 |
| Join this thread. | |
| virtual bool | IsCurrent ()=0 |
| Check if this thread is the current active thread. | |
| virtual uint | GetId ()=0 |
| Get the unique ID of this thread. | |
Static Public Member Functions | |
| static ThreadObject * | New (OTTDThreadFunc proc, void *param) |
| Create a thread; proc will be called as first function inside the thread, with optinal params. | |
| static ThreadObject * | AttachCurrent () |
| Convert the current thread to a new ThreadObject. | |
| static uint | CurrentId () |
| Find the Id of the current running thread. | |
Definition at line 13 of file thread.h.
| virtual bool ThreadObject::IsRunning | ( | ) | [pure virtual] |
Check if the thread is currently running.
Implemented in ThreadObject_MorphOS, ThreadObject_pthread, and ThreadObject_Win32.
| virtual bool ThreadObject::WaitForStop | ( | ) | [pure virtual] |
Waits for the thread to exit.
Implemented in ThreadObject_MorphOS, ThreadObject_pthread, and ThreadObject_Win32.
| virtual bool ThreadObject::IsCurrent | ( | ) | [pure virtual] |
Check if this thread is the current active thread.
Implemented in ThreadObject_MorphOS, ThreadObject_pthread, and ThreadObject_Win32.
| virtual uint ThreadObject::GetId | ( | ) | [pure virtual] |
Get the unique ID of this thread.
Implemented in ThreadObject_MorphOS, ThreadObject_pthread, and ThreadObject_Win32.
| ThreadObject * ThreadObject::New | ( | OTTDThreadFunc | proc, | |
| void * | param | |||
| ) | [static] |
Create a thread; proc will be called as first function inside the thread, with optinal params.
| proc | The procedure to call inside the thread. | |
| param | The params to give with 'proc'. |
Definition at line 216 of file thread_morphos.cpp.
Referenced by GenerateWorld(), and SaveOrLoad().
| ThreadObject * ThreadObject::AttachCurrent | ( | ) | [static] |
Convert the current thread to a new ThreadObject.
Definition at line 221 of file thread_morphos.cpp.
| uint ThreadObject::CurrentId | ( | ) | [static] |
Find the Id of the current running thread.
Definition at line 226 of file thread_morphos.cpp.
1.5.6