Changeset 1740 in Sophya for trunk/ArchTOIPipe
- Timestamp:
- Nov 9, 2001, 12:23:58 AM (24 years ago)
- Location:
- trunk/ArchTOIPipe/Kernel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/toi.cc
r1738 r1740 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toi.cc,v 1. 7 2001-11-08 15:47:46aubourg Exp $5 // $Id: toi.cc,v 1.8 2001-11-08 23:23:58 aubourg Exp $ 6 6 7 7 #include "toiprocessor.h" … … 37 37 producer = NULL; 38 38 dbg = false; 39 syncOldWay = true; 39 40 } 40 41 -
trunk/ArchTOIPipe/Kernel/toi.h
r1738 r1740 5 5 // Christophe Magneville 6 6 // Reza Ansari 7 // $Id: toi.h,v 1. 9 2001-11-08 15:47:46aubourg Exp $7 // $Id: toi.h,v 1.10 2001-11-08 23:23:58 aubourg Exp $ 8 8 9 9 #ifndef TOI_H … … 73 73 string getName() const {return name;} 74 74 75 bool needSyncOldWay() const {return syncOldWay;} 76 75 77 protected: 76 78 TOI* errorTOI; … … 89 91 vector<TOIProcessor*> consumers; 90 92 double defaultValue; 91 93 bool syncOldWay; 94 92 95 #ifdef WITH_SOPHYA 93 96 /* l'interface va etre modifiee, NE PAS UTILISER -
trunk/ArchTOIPipe/Kernel/toiprocessor.cc
r1738 r1740 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toiprocessor.cc,v 1.1 3 2001-11-08 15:47:46aubourg Exp $5 // $Id: toiprocessor.cc,v 1.14 2001-11-08 23:23:58 aubourg Exp $ 6 6 7 7 #include "toiprocessor.h" … … 311 311 double TOIProcessor::getData(int toiIndex, int i) { 312 312 TOI* toi = getInputTOI(toiIndex); 313 toi->waitForData(i); 313 if (toi->needSyncOldWay()) toi->waitForData(i); // seulement pour autre que segmented 314 autoWontNeed(i); 314 315 return toi->getData(i); 315 316 } … … 318 319 { 319 320 TOI* toi = getInputTOI(toiIndex); 320 toi->waitForData(i);321 if (toi->needSyncOldWay()) toi->waitForData(i); // seulement pour autre que segmented 321 322 toi->getData(i, data, flag); 322 323 return; … … 359 360 360 361 void TOIProcessor::notify() { 361 lock(); 362 /* if (mutex.__m_lock.__status == 0) { 363 cout << "wait without lock" << endl; abort(); 364 }*/ 365 362 lock(); 366 363 pthread_cond_broadcast(&dataReady); 367 364 unlock(); … … 373 370 toi->putData(i, value, flg); 374 371 autoWontNeed(i); 375 notify();372 if (toi->needSyncOldWay()) notify(); // seulement pour non segmented 376 373 } 377 374 -
trunk/ArchTOIPipe/Kernel/toisegment.cc
r1738 r1740 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toisegment.cc,v 1.1 4 2001-11-08 15:47:46aubourg Exp $5 // $Id: toisegment.cc,v 1.15 2001-11-08 23:23:58 aubourg Exp $ 6 6 7 7 #include "toisegment.h" … … 31 31 master = new MasterView(bufsz, maxseg, ""); 32 32 setName("TOISegmented"); 33 syncOldWay = false; 33 34 } 34 35 … … 36 37 master = new MasterView(bufsz, maxseg, nm); 37 38 setName(nm); 39 syncOldWay = false; 38 40 } 39 41 … … 42 44 master = new MasterView(bufsz, maxseg, nm); 43 45 setName(nm); 46 syncOldWay = false; 44 47 } 45 48
Note:
See TracChangeset
for help on using the changeset viewer.