Thread Class Reference#include <thread.h>
Constructor & Destructor Documentation
Create a thread.
Destroy a thread. The thread MUST be allowed to exit before it is destroyed.
Member Function Documentation
Start a thread. Sets shouldStop to false and calls run() in a new thread of execution.
Ask a thread to stop running.
Block until the thread stops running.
Threads may call checkForStop() periodically to check if they've been asked to stop. As soon as checkForStop() returns true, the thread should clean up and return.
Returns true if the thread is running.
Returns the platform specific thread id for this thread.
Member Data Documentation
Used to signal threads need to stop. Threads set this flag to false in start() If set, the thread will delete itself once it has finished running.
|