|
OpenTTD
|
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 optional params. | |
|
static |
Create a thread; proc will be called as first function inside the thread, with optional 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 196 of file thread_morphos.cpp.
Referenced by DoSave(), GenerateWorld(), VideoDriver_SDL::MainLoop(), VideoDriver_Win32::MainLoop(), NetworkUDPAdvertise(), NetworkUDPQueryServer(), NetworkUDPRemoveAdvertise(), ScanNewGRFFiles(), LinkGraphJob::SpawnThread(), and TCPConnecter::TCPConnecter().
1.8.1.2