1 #ifndef COIN_SBTHREAD_H 2 #define COIN_SBTHREAD_H 36 #include <Inventor/SbBasic.h> 41 static SbThread * create(
void *(*func)(
void *),
void * closure) {
42 return new SbThread(cc_thread_construct(func, closure));
44 static void destroy(
SbThread * thread) {
45 cc_thread_destruct(thread->thread);
49 SbBool join(
void ** retval = 0L) {
50 return cc_thread_join(this->thread, retval) == CC_OK;
52 static SbBool join(
SbThread * thread,
void ** retval = 0L) {
53 return cc_thread_join(thread->thread, retval) == CC_OK;
64 #endif // !COIN_SBTHREAD_H
struct cc_thread cc_thread
The type definition for the thread structure.
Definition: common.h:57
Definition: SbThread.h:39