// 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(long begin, long end); long getRequestedBegin(); long getRequestedEnd(); void addThread(pthread_t*); void joinAll(); protected: TOIManager(); static TOIManager* instance; long reqBegin; long reqEnd; vector threads; }; #endif