H3DUtil::SimpleThread Class Reference

The SimpleThread class creates a new thread to run a function. More...

#include <H3DUtil/Threads.h>

Inheritance diagram for H3DUtil::SimpleThread:

Inheritance graph

List of all members.

Public Member Functions

 SimpleThread (void *(func)(void *), void *args=NULL, int thread_priority=DEFAULT_THREAD_PRIORITY)
 Constructor.
int join ()
 Wait for thread to complete.
virtual ~SimpleThread ()
 Destructor.


Detailed Description

The SimpleThread class creates a new thread to run a function.

The thread is run until the function returns.


Constructor & Destructor Documentation

SimpleThread::SimpleThread ( void *  func)(void *,
void *  args = NULL,
int  thread_priority = DEFAULT_THREAD_PRIORITY 
)

Constructor.

Parameters:
func The function to run in the thread.
args Arguments to the function in argument func.
thread_priority The priority of the thread.

References H3DUtil::ThreadBase::thread_id.


Member Function Documentation

int SimpleThread::join (  ) 

Wait for thread to complete.

Returns 0 on success.

References H3DUtil::ThreadBase::thread_id.


The documentation for this class was generated from the following files:

Generated on Fri Nov 7 10:23:44 2008 for H3DUtil by  doxygen 1.5.7