Changeset 2024 in Sophya for trunk/ArchTOIPipe


Ignore:
Timestamp:
May 30, 2002, 12:09:06 PM (23 years ago)
Author:
ansari
Message:

Correction de pb divers - Reza 30/5/2002

Location:
trunk/ArchTOIPipe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/toiseqbuff.cc

    r2022 r2024  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toiseqbuff.cc,v 1.14 2002-05-30 08:41:25 ansari Exp $
     5// $Id: toiseqbuff.cc,v 1.15 2002-05-30 10:09:06 ansari Exp $
    66
    77#include "toiprocessor.h"
     
    149149      cout << " ... Out of waitGet() i=" << i
    150150           << " next_in= " << next_in << " next_out=" << next_out << endl;
    151   }
    152   cleanWaitGet();
     151    cleanWaitGet();
     152  }
    153153  val = dataRef(i);
    154154  flg = flagRef(i);
     
    162162    signalPut();
    163163  }
    164   unlock();
    165   if (fgsigput)  signal();
     164  if (fgsigput)  broadcast();
     165  unlock();
    166166  return;
    167167}
     
    195195        cout << " ... Out of waitGet() j=" << j
    196196             << " next_in= " << next_in << " next_out=" << next_out << endl;
    197     }
    198     cleanWaitGet();
     197      cleanWaitGet();
     198    }
    199199    data[j-i] = dataRef(j);
    200200    if (flg) flg[j-i] = flagRef(j);
     
    206206             << " i=" << i << " next_in= " << next_in
    207207             << " 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();
    213214  return; 
    214215}
     
    281282           << " i=" << i << " next_in= " << next_in
    282283           << " 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();
    287289  return;
    288290}
     
    313315             << " j=" << j
    314316             << " next_in= " << next_in << " next_out=" << next_out << endl;
     317      broadcast();
    315318      waitPut();
    316319      if (dbglev > 0)
    317320        cout << " ... Out of waitPut() j=" << j
    318321             << " next_in= " << next_in << " next_out=" << next_out << endl;
    319     }
    320     cleanWaitPut();
     322      cleanWaitPut();
     323    }
    321324    dataRef(j) = val[j-i];
    322325    if (flg) flagRef(j) = flg[j-i];
    323326    else flagRef(j) = 0;
    324327    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  /*
    326338  if (isGetWaiting() && (next_in-next_out > wsize/8))  {
    327339    if (dbglev > 0)
     
    329341           << " i=" << i << " next_in= " << next_in
    330342           << " 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();
    335349  return;
    336350}
  • trunk/ArchTOIPipe/TestPipes/aksj02.cc

    r2014 r2024  
    240240
    241241  InitTim();
    242 
     242  if ((soff2_dofg == true) && (wtoi < 32768))      wtoi = 32768;
    243243  cout << ">>>> aksj02: Infile= " << infile << " outFile="
    244244       << outfile << endl;
Note: See TracChangeset for help on using the changeset viewer.