Main Page   Class Hierarchy   Compound List   File List   Compound Members  

CAVERNts_thread_c Class Reference

#include <CAVERNts_thread_c.hxx>

List of all members.

Public Methods

int create (void *(*threaded_func)(void *), void *arg)
CAVERN_THREAD_T* getThread ()
 Return thread handle.


Private Attributes

CAVERN_THREAD_T itsThread


Detailed Description

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:
Generated at Mon Jul 2 14:24:45 2001 for CAVERNsoft by doxygen1.2.8-20010617 written by Dimitri van Heesch, © 1997-2001