// This may look like C code, but it is really -*- C++ -*- #ifndef TOIMANAGER_H #define TOIMANAGER_H #include using namespace std; class TOIManager { public: static TOIManager* getManager(); void setRequestedSample(int begin, int end); int getRequestedBegin(); int getRequestedEnd(); void addThread(pthread_t*); void joinAll(); protected: TOIManager(); static TOIManager* instance; long reqBegin; long reqEnd; vector threads; }; #endif