Ignore:
Timestamp:
Nov 10, 2001, 12:13:15 AM (24 years ago)
Author:
aubourg
Message:

optim lecture/ecriture en bloc

File:
1 edited

Legend:

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

    r1740 r1742  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toiprocessor.cc,v 1.14 2001-11-08 23:23:58 aubourg Exp $
     5// $Id: toiprocessor.cc,v 1.15 2001-11-09 23:13:15 aubourg Exp $
    66
    77#include "toiprocessor.h"
     
    321321  if (toi->needSyncOldWay()) toi->waitForData(i); // seulement pour autre que segmented
    322322  toi->getData(i, data, flag);
     323  autoWontNeed(i);
    323324  return;
    324325}
     326
     327void TOIProcessor::getData(int toiIndex, int i, int n, double* d)
     328{
     329  TOI* toi = getInputTOI(toiIndex);
     330  if (toi->needSyncOldWay()) toi->waitForData(i+n); // seulement pour autre que segmented
     331  toi->getData(i, n, d);
     332  autoWontNeed(i);
     333  return;
     334}
     335
     336void TOIProcessor::getData(int toiIndex, int i, int n, double* d, uint_8* f)
     337{
     338  TOI* toi = getInputTOI(toiIndex);
     339  if (toi->needSyncOldWay()) toi->waitForData(i+n); // seulement pour autre que segmented
     340  toi->getData(i, n, d, f);
     341  autoWontNeed(i);
     342  return;
     343}
     344
    325345
    326346/*RZCMV
     
    369389  TOI* toi = getOutputTOI(toiIndex);
    370390  toi->putData(i, value, flg);
    371   autoWontNeed(i);
     391  // autoWontNeed(i);  // now done on getData
     392  if (toi->needSyncOldWay())  notify(); // seulement pour non segmented
     393}
     394
     395void TOIProcessor::putData(int toiIndex, int i, int n, double const* val,
     396                           uint_8 const* flg=0) {
     397  TOI* toi = getOutputTOI(toiIndex);
     398  toi->putData(i, n, val, flg);
    372399  if (toi->needSyncOldWay())  notify(); // seulement pour non segmented
    373400}
Note: See TracChangeset for help on using the changeset viewer.