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 |
|
---|
8 | class TOIManager {
|
---|
9 | public:
|
---|
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 |
|
---|
17 | protected:
|
---|
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.