#ifndef THREAD_H
#define THREAD_H
// uses SGI thread.h in original
#include
class Thread {
public:
Thread();
int start(void * arg);
protected:
int run(void * arg);
static void* entryPoint(void*);
virtual void setup();
virtual void execute(void*);
void* Arg() const { return Arg_; }
void Arg(void*) { Arg_ = a; }
private:
THREADID ThreadId_;
void* Arg_;
};
#endif THREAD_H