Thread

Base class for creating threads

Constructors

this
this(void function() func)

Constructor. Initializes Thread using a function pointer

this
this(void delegate() dlgt)

Constructor. Initializes Thread using a delegate

Destructor

~this
~this()

Destructor

Members

Functions

isRunning
bool isRunning()

Checks if thread is running

join
void join()

Waits for the thread to terminate

start
void start()

Starts the thread

terminate
void terminate()

Stops the thread immediately. This functionality is unsafe, use with care

Static functions

posixThreadFunc
void* posixThreadFunc(void* arg)
Undocumented in source. Be warned that the author may not have intended to support it.
sleep
void sleep(uint msec)

Wait for specified amout of milliseconds

winThreadFunc
uint winThreadFunc(void* lpParam)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta