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

Last change on this file since 1368 was 1365, checked in by aubourg, 25 years ago

pipeline TOI archeops

File size: 470 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
8class TOIManager {
9public:
10 static TOIManager* getManager();
11 void setRequestedSample(long begin, long end);
12 long getRequestedBegin();
13 long getRequestedEnd();
14 void addThread(pthread_t*);
15 void joinAll();
16
17protected:
18 TOIManager();
19 static TOIManager* instance;
20 long reqBegin;
21 long reqEnd;
22
23 vector<pthread_t*> threads;
24};
25
26#endif
Note: See TracBrowser for help on using the repository browser.