DSThread


Discussion

This class provides simple methods for handling threads.

Member Functions


DSThread


public:

DSThread (void);
Discussion

Create a thread object. The thread is not spawned until a subsequent exec() call.


detach


public:

void detach (void);
Discussion

Detaches a thread.


exec


public:

int exec (     void *(*start ) (     void *),     void * arg );
Discussion

Executes a thread.

Parameter Descriptions
start
This is the name of a function to be executed when the thread initiates.
arg
This is a pointer to data that the thread function will receive.

~TSThread


public:

~DSThread (void);
Discussion

Destroy a Thread object. If a thread has been initiated, it is not terminated.

(Last Updated 9/24/2004)