Last change
on this file since 2240 was 1710, checked in by aubourg, 24 years ago |
pb deadlock multiple fits readers
|
File size:
994 bytes
|
Line | |
---|
1 | #include "toi.h"
|
---|
2 | #include "toisegment.h"
|
---|
3 | #include "toiprocessor.h"
|
---|
4 | #include "fitstoirdr.h"
|
---|
5 | #include "fitstoiwtr.h"
|
---|
6 | #include "asciitoiwtr.h"
|
---|
7 | #include "toisqfilter.h"
|
---|
8 | #include "toimanager.h"
|
---|
9 |
|
---|
10 | int main(int argc, char** argv) {
|
---|
11 | cout << "tsttoi starting" << endl;
|
---|
12 | TOIManager* mgr = TOIManager::getManager();
|
---|
13 | mgr->setRequestedSample(104000000,104020000);
|
---|
14 |
|
---|
15 | FITSTOIReader r1(argv[1]);
|
---|
16 | FITSTOIReader r2(argv[2]);
|
---|
17 |
|
---|
18 | FITSTOIWriter w1("out1.fits");
|
---|
19 | // FITSTOIWriter w2("out2.fits");
|
---|
20 | // ASCIITOIWriter w1("out1.data");
|
---|
21 | // ASCIITOIWriter w2("out2.data");
|
---|
22 |
|
---|
23 |
|
---|
24 | TOI* toi1 = new TOISegmented(1024);
|
---|
25 | r1.addOutput("boloMuV_8", toi1);
|
---|
26 |
|
---|
27 | TOI* toi2 = new TOISegmented(1024);
|
---|
28 | r2.addOutput("boloMuV_11", toi2);
|
---|
29 |
|
---|
30 | w1.addInput("143K01", toi1);
|
---|
31 | w1.addInput("143K02", toi2);
|
---|
32 |
|
---|
33 | // w2.addInput("143K01", toi1);
|
---|
34 | // w2.addInput("143K02", toi2);
|
---|
35 |
|
---|
36 | cout << "starting" << endl;
|
---|
37 |
|
---|
38 | r1.start();
|
---|
39 | r2.start();
|
---|
40 | w1.start();
|
---|
41 | //w2.start();
|
---|
42 |
|
---|
43 | cout << "joining" << endl;
|
---|
44 | mgr->joinAll();
|
---|
45 | return(0);
|
---|
46 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.