1 #ifndef COIN_SBTHREAD_H
2 #define COIN_SBTHREAD_H
27 #include <Inventor/SbBasic.h>
28 #include <Inventor/C/threads/thread.h>
33 return new SbThread(cc_thread_construct(func, closure));
36 cc_thread_destruct(thread->thread);
40 SbBool
join(
void ** retval = 0L) {
41 return cc_thread_join(this->thread, retval) == CC_OK;
44 return cc_thread_join(thread->thread, retval) == CC_OK;
48 SbThread(cc_thread * thrd) { this->thread = thrd; }
55 #endif // !COIN_SBTHREAD_H
static SbThread * create(void *(*func)(void *), void *closure)
Definition: SbThread.h:32
static void destroy(SbThread *thread)
Definition: SbThread.h:35
static SbBool join(SbThread *thread, void **retval=0L)
Definition: SbThread.h:43
SbBool join(void **retval=0L)
Definition: SbThread.h:40
A class for managing threads.
Definition: SbThread.h:30
~SbThread(void)
Definition: SbThread.h:49
SbThread(cc_thread *thrd)
Definition: SbThread.h:48
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Wed Jul 24 2019 for Coin by Doxygen. 1.8.17