.TH "SbThread" 3 "Wed May 23 2012" "Version 3.1.3" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SbThread \- .PP A class for managing threads\&. .PP This class provides a portable framework around the tasks of instantiating, starting, stopping and joining threads\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "SbBool \fBjoin\fP (void **retval=0L)" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static \fBSbThread\fP * \fBcreate\fP (void *(*func)(void *), void *closure)" .br .ti -1c .RI "static void \fBdestroy\fP (\fBSbThread\fP *thread)" .br .ti -1c .RI "static SbBool \fBjoin\fP (\fBSbThread\fP *thread, void **retval=0L)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "\fBSbThread\fP (cc_thread *thrd)" .br .ti -1c .RI "\fB~SbThread\fP (void)" .br .in -1c .SH "Detailed Description" .PP A class for managing threads\&. .PP This class provides a portable framework around the tasks of instantiating, starting, stopping and joining threads\&. It wraps the underlying native thread-handling toolkit in a transparent manner, to make multiplatform threads programming straightforward for the application programmer\&. .SH "Constructor & Destructor Documentation" .PP .SS "SbThread::SbThread (cc_thread *thread)\fC [inline]\fP, \fC [protected]\fP" Protected constructor handling the internal thread ADT\&. .PP \fBSee also:\fP .RS 4 \fBSbThread::create\fP .RE .PP .SS "SbThread::~SbThread (void)\fC [inline]\fP, \fC [protected]\fP" Destructor\&. .PP \fBSee also:\fP .RS 4 \fBSbThread::destroy\fP .RE .PP .SH "Member Function Documentation" .PP .SS "static \fBSbThread\fP * SbThread::create (void *(*)(void *)func, void *closure)\fC [inline]\fP, \fC [static]\fP" This function creates a new thread, or returns NULL on failure\&. .SS "static void SbThread::destroy (\fBSbThread\fP *thread)\fC [inline]\fP, \fC [static]\fP" This function destroys a thread\&. .SS "int SbThread::join (void **retval = \fC0L\fP)\fC [inline]\fP" This function waits on the death of the given thread, returning the thread's return value at the location pointed to by \fCretval\fP\&. .SS "static int SbThread::join (\fBSbThread\fP *thread, void **retval = \fC0L\fP)\fC [inline]\fP, \fC [static]\fP" This function waits on the death of the given thread, returning the thread's return value at the location pointed to by \fCretval\fP\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.