WorkerThread

A thread that is created by ThreadPool

Constructors

this
this(size_t id, ThreadPool pool)

Constructor

Members

Functions

busy
bool busy()
Undocumented in source. Be warned that the author may not have intended to support it.
threadFunc
void threadFunc()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_busy
bool _busy;
Undocumented in source.
id
size_t id;
Undocumented in source.
pool
ThreadPool pool;
Undocumented in source.

Inherited Members

From Thread

~this
~this()

Destructor

start
void start()

Starts the thread

join
void join()

Waits for the thread to terminate

isRunning
bool isRunning()

Checks if thread is running

terminate
void terminate()

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

winThreadFunc
uint winThreadFunc(void* lpParam)
Undocumented in source. Be warned that the author may not have intended to support it.
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

Meta