27#ifndef _TGS_SB_THREAD_H_
28#define _TGS_SB_THREAD_H_
31#include <Inventor/STL/list>
34#pragma warning( push )
35#pragma warning( disable: 4290 4251 )
74 static SbThread*
create(
void *(threadRoutine)(
void* _userData),
void *structData);
139 static void setName(
const SbThreadId_t &threadId,
const char* threadName);
145 static bool switchThread();
150 SbBool isRunning() {
return bIsRunning; }
155 static void sleep_ms(
int dT_ms );
163 static void * threadTaskLauncher(
void *_threadLancher );
172 SbThreadId_t threadId;
173 typedef std::list< SbThread* > SbThreadList;
174 static SbThread::SbThreadList m_threadList;
181#pragma warning( pop )
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Portable thread ...
static SbBool isStopRequested()
Returns true if another thread or process requested termination of this thread.
static int increasePriorityLevel(int value=1)
Valid Priorities values and behavior are OS dependent.
static SbThread * create(void *(threadRoutine)(void *_userData), void *structData)
Creates a new thread.
static int decreasePriorityLevel(int value=1)
Decrease thread priority of value unit.
static void setName(const SbThreadId_t &threadId, const char *threadName)
Assign a debug name to a thread.
static SbThreadId_t getCurrentThreadId()
Returns a unique id identifying the current thread.
static void kill(SbThread *thread)
Signals the specified thread that it should terminate ASAP.
static int getPriorityLevel()
Return the priority of the current thread.
static int setPriorityLevel(int)
Set the priority of the current thread.
static void destroy(SbThread *)
Destroys the specified thread.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Portable mutex c...