Changeset 2024 in Sophya
- Timestamp:
- May 30, 2002, 12:09:06 PM (23 years ago)
- Location:
- trunk/ArchTOIPipe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/toiseqbuff.cc
r2022 r2024 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toiseqbuff.cc,v 1.1 4 2002-05-30 08:41:25ansari Exp $5 // $Id: toiseqbuff.cc,v 1.15 2002-05-30 10:09:06 ansari Exp $ 6 6 7 7 #include "toiprocessor.h" … … 149 149 cout << " ... Out of waitGet() i=" << i 150 150 << " next_in= " << next_in << " next_out=" << next_out << endl; 151 }152 cleanWaitGet();151 cleanWaitGet(); 152 } 153 153 val = dataRef(i); 154 154 flg = flagRef(i); … … 162 162 signalPut(); 163 163 } 164 unlock();165 if (fgsigput) signal();164 if (fgsigput) broadcast(); 165 unlock(); 166 166 return; 167 167 } … … 195 195 cout << " ... Out of waitGet() j=" << j 196 196 << " next_in= " << next_in << " next_out=" << next_out << endl; 197 }198 cleanWaitGet();197 cleanWaitGet(); 198 } 199 199 data[j-i] = dataRef(j); 200 200 if (flg) flg[j-i] = flagRef(j); … … 206 206 << " i=" << i << " next_in= " << next_in 207 207 << " next_out=" << next_out << endl; 208 signalPut(); 209 } 210 } 211 unlock(); 212 if (fgsigput) signal(); 208 // signalPut(); 209 broadcast(); 210 } 211 } 212 unlock(); 213 // if (fgsigput) signal(); 213 214 return; 214 215 } … … 281 282 << " i=" << i << " next_in= " << next_in 282 283 << " next_out=" << next_out << endl; 283 signalGet(); 284 } 285 unlock(); 286 if (fgsigget) signal(); 284 broadcast(); 285 // signalGet(); 286 } 287 // if (fgsigget) broadcast(); 288 unlock(); 287 289 return; 288 290 } … … 313 315 << " j=" << j 314 316 << " next_in= " << next_in << " next_out=" << next_out << endl; 317 broadcast(); 315 318 waitPut(); 316 319 if (dbglev > 0) 317 320 cout << " ... Out of waitPut() j=" << j 318 321 << " next_in= " << next_in << " next_out=" << next_out << endl; 319 }320 cleanWaitPut();322 cleanWaitPut(); 323 } 321 324 dataRef(j) = val[j-i]; 322 325 if (flg) flagRef(j) = flg[j-i]; 323 326 else flagRef(j) = 0; 324 327 next_in = j+1; 325 } 328 if (isGetWaiting() && (next_in-next_out > wsize/8)) { 329 if (dbglev > 0) 330 cout << " TOISeqBuffered::putData(i,n ...) - signalGet() name=" << getName() 331 << " i=" << i << " next_in= " << next_in 332 << " next_out=" << next_out << endl; 333 // signalGet(); 334 broadcast(); 335 } 336 } 337 /* 326 338 if (isGetWaiting() && (next_in-next_out > wsize/8)) { 327 339 if (dbglev > 0) … … 329 341 << " i=" << i << " next_in= " << next_in 330 342 << " next_out=" << next_out << endl; 331 signalGet(); 332 } 333 unlock(); 334 if (fgsigget) signal(); 343 //signalGet(); 344 broadcast(); 345 } 346 */ 347 // if (fgsigget) broadcast(); 348 unlock(); 335 349 return; 336 350 } -
trunk/ArchTOIPipe/TestPipes/aksj02.cc
r2014 r2024 240 240 241 241 InitTim(); 242 242 if ((soff2_dofg == true) && (wtoi < 32768)) wtoi = 32768; 243 243 cout << ">>>> aksj02: Infile= " << infile << " outFile=" 244 244 << outfile << endl;
Note:
See TracChangeset
for help on using the changeset viewer.