|void||start (Runnable *runnable=0)|
|bool||shouldStop () const|
|bool||isRunning () const|
|virtual void||run ()|
|static unsigned int||count ()|
|static Thread *||getCurrent ()|
|static void||sleep (unsigned int milli)|
|static void||yield ()|
The Thread class encapsulates a thread of execution.
It is implemented with POSIX threads. Code that uses this class should link with libpthread and librt (for nanosleep).
Tell the thread to stop.
This doesn't make the thread actually stop, it just causes shouldStop() to return true.
This blocks until the thread has actually terminated.
If the thread is infinite looping, this will block forever!