#include <thread.h>
Public Member Functions | |
virtual | ~ThreadObject () |
Virtual destructor to allow 'delete' operator to work properly. | |
virtual bool | Exit ()=0 |
Exit this thread. | |
virtual void | Join ()=0 |
Join this thread. | |
Static Public Member Functions | |
static bool | New (OTTDThreadFunc proc, void *param, ThreadObject **thread=NULL) |
Create a thread; proc will be called as first function inside the thread, with optinal params. |
Definition at line 15 of file thread.h.
bool ThreadObject::New | ( | OTTDThreadFunc | proc, | |
void * | param, | |||
ThreadObject ** | thread = NULL | |||
) | [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'. | |
thread | Place to store a pointer to the thread in. May be NULL. |
Definition at line 187 of file thread_morphos.cpp.
Referenced by GenerateWorld(), and SaveOrLoad().