Ignore:
Timestamp:
Nov 28, 2002, 4:49:21 PM (23 years ago)
Author:
aubourg
Message:

deadlock work

File:
1 edited

Legend:

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

    r2187 r2282  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toiprocessor.cc,v 1.26 2002-09-09 15:33:15 aubourg Exp $
     5// $Id: toiprocessor.cc,v 1.27 2002-11-28 15:49:21 aubourg Exp $
    66
    77#include "toiprocessor.h"
     
    9494
    9595int TOIProcessor::getMinOut() {
    96   /*
    97   //cout << name << "minout" << endl;
    98   if (minOut < 0)  minOut = calcMinOut();
    99   //cout << name << "minout=" << minOut << endl;
    100   return minOut;
    101   */
    102   return snBegin + lowExtra;
     96  //  return snBegin + lowExtra;
     97  return snBegin;
    10398}
    10499
    105100int TOIProcessor::getMaxOut() {
    106   /*
    107   //cout << name << "maxout" << endl;
    108   if (maxOut < 0) maxOut = calcMaxOut();
    109   //cout << name << "maxout=" << maxOut << endl;
    110   return maxOut;
    111   */
    112   return snEnd - upExtra;
     101  //  return snEnd - upExtra;
     102  return snEnd;
    113103}
    114104
     
    122112
    123113int TOIProcessor::getMinIn() {
    124   /*
    125   int nIn = inIx.size();
    126   int minIn = 0;
    127   for (int i=0; i<nIn; i++) {
    128     TOI* toi = inTOIs[i];
    129     if (toi == NULL) continue;  // Protection - Reza  13/3/2001
    130     int x = toi->getMinSn();
    131     if (x > minIn) minIn = x;
    132   }
    133   if (forcedMinIn > 0 && forcedMinIn > minIn) minIn = forcedMinIn;
    134   return minIn;
    135   */
    136   return snBegin;
     114  //  return snBegin;
     115  return snBegin - lowExtra;
    137116}
    138117
    139118int TOIProcessor::getMaxIn() {
    140   /*
    141   int_4 nIn = inIx.size();
    142   int_4 maxIn = MAXINT;
    143   for (int i=0; i<nIn; i++) {
    144     TOI* toi = inTOIs[i];
    145     if (toi == NULL) continue;  // Protection - Reza  13/3/2001
    146     int_4 x = toi->getMaxSn();
    147     if (x < maxIn) maxIn = x;
    148   }
    149   if (forcedMaxIn > 0 && forcedMaxIn < maxIn) maxIn = forcedMaxIn;
    150   return maxIn;
    151   */
    152   return snEnd;
     119  //  return snEnd;
     120  return snEnd + upExtra;
    153121}
    154122
Note: See TracChangeset for help on using the changeset viewer.