mirror of
https://github.com/thestk/stk
synced 2026-01-12 20:41:52 +00:00
Version 4.4.0
This commit is contained in:
committed by
Stephen Sinclair
parent
d199342e86
commit
eccd8c9981
@@ -2,17 +2,28 @@
|
||||
/*! \class Thread
|
||||
\brief STK thread class.
|
||||
|
||||
This class provides a uniform interface for
|
||||
cross-platform thread use. On Linux and IRIX
|
||||
systems, the pthread library is used. Under Windows,
|
||||
the Windows thread library is used.
|
||||
This class provides a uniform interface for cross-platform
|
||||
threads. On unix systems, the pthread library is used. Under
|
||||
Windows, the C runtime threadex functions are used.
|
||||
|
||||
by Perry R. Cook and Gary P. Scavone, 1995 - 2007.
|
||||
Each instance of the Thread class can be used to control a single
|
||||
thread process. Routines are provided to signal cancelation
|
||||
and/or joining with a thread, though it is not possible for this
|
||||
class to know the running status of a thread once it is started.
|
||||
|
||||
For cross-platform compatability, thread functions should be
|
||||
declared as follows:
|
||||
|
||||
THREAD_RETURN THREAD_TYPE thread_function(void *ptr)
|
||||
|
||||
by Perry R. Cook and Gary P. Scavone, 1995 - 2009.
|
||||
*/
|
||||
/***************************************************/
|
||||
|
||||
#include "Thread.h"
|
||||
|
||||
namespace stk {
|
||||
|
||||
Thread :: Thread()
|
||||
{
|
||||
thread_ = 0;
|
||||
@@ -91,3 +102,5 @@ void Thread :: testCancel(void)
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
} // stk namespace
|
||||
|
||||
Reference in New Issue
Block a user