source: Sophya/trunk/ArchTOIPipe/Kernel/toimanager.h@ 1684

Last change on this file since 1684 was 1684, checked in by aubourg, 24 years ago

bug getMaxIn

File size: 488 bytes
Line 
1// This may look like C code, but it is really -*- C++ -*-
2
3#ifndef TOIMANAGER_H
4#define TOIMANAGER_H
5
6#include <vector>
7
8using namespace std;
9
10class TOIManager {
11public:
12 static TOIManager* getManager();
13 void setRequestedSample(int begin, int end);
14 int getRequestedBegin();
15 int getRequestedEnd();
16 void addThread(pthread_t*);
17 void joinAll();
18
19protected:
20 TOIManager();
21 static TOIManager* instance;
22 long reqBegin;
23 long reqEnd;
24
25 vector<pthread_t*> threads;
26};
27
28#endif
Note: See TracBrowser for help on using the repository browser.