A Thread Object which works on all our supported OSes. More...
#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. | |
A Thread Object which works on all our supported OSes.
Definition at line 24 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 194 of file thread_morphos.cpp.
Referenced by DoSave(), GenerateWorld(), VideoDriver_Win32::MainLoop(), VideoDriver_SDL::MainLoop(), NetworkUDPAdvertise(), NetworkUDPQueryServer(), NetworkUDPRemoveAdvertise(), ScanNewGRFFiles(), and TCPConnecter::TCPConnecter().
1.7.1