Last change
on this file since 1730 was 1710, checked in by aubourg, 24 years ago |
pb deadlock multiple fits readers
|
File size:
994 bytes
|
Rev | Line | |
---|
[1693] | 1 | #include "toi.h"
|
---|
| 2 | #include "toisegment.h"
|
---|
| 3 | #include "toiprocessor.h"
|
---|
| 4 | #include "fitstoirdr.h"
|
---|
| 5 | #include "fitstoiwtr.h"
|
---|
[1710] | 6 | #include "asciitoiwtr.h"
|
---|
[1693] | 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");
|
---|
[1710] | 19 | // FITSTOIWriter w2("out2.fits");
|
---|
| 20 | // ASCIITOIWriter w1("out1.data");
|
---|
| 21 | // ASCIITOIWriter w2("out2.data");
|
---|
[1693] | 22 |
|
---|
| 23 |
|
---|
[1698] | 24 | TOI* toi1 = new TOISegmented(1024);
|
---|
[1693] | 25 | r1.addOutput("boloMuV_8", toi1);
|
---|
| 26 |
|
---|
[1698] | 27 | TOI* toi2 = new TOISegmented(1024);
|
---|
[1693] | 28 | r2.addOutput("boloMuV_11", toi2);
|
---|
| 29 |
|
---|
| 30 | w1.addInput("143K01", toi1);
|
---|
| 31 | w1.addInput("143K02", toi2);
|
---|
| 32 |
|
---|
[1710] | 33 | // w2.addInput("143K01", toi1);
|
---|
| 34 | // w2.addInput("143K02", toi2);
|
---|
[1693] | 35 |
|
---|
| 36 | cout << "starting" << endl;
|
---|
| 37 |
|
---|
| 38 | r1.start();
|
---|
| 39 | r2.start();
|
---|
| 40 | w1.start();
|
---|
[1710] | 41 | //w2.start();
|
---|
[1693] | 42 |
|
---|
| 43 | cout << "joining" << endl;
|
---|
| 44 | mgr->joinAll();
|
---|
| 45 | return(0);
|
---|
| 46 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.