Thread class. Note: the CAVERNts_thread-related classes are intended to be simplified versions of the globus/pthread interfaces so that beginners can quickly create threaded programs. For greater control over threads use the globus thread API which is very similar to the pthreads API.
Member Function Documentation
int CAVERNts_thread_c::create (
void *(* threaded_func)(void *),
void * arg )
Create a thread.
Parameters:
threaded_func
is your function that will be called in a separate thread. The function needs to be of the form:
void * threaded_func(void *arg);
Parameters:
arg
is the argument to pass to the threaded function.
Returns:
0 if thread successful, else non-zero.
The documentation for this class was generated from the following file: