Changeset 406 in Sophya for trunk


Ignore:
Timestamp:
Sep 15, 1999, 2:37:29 PM (26 years ago)
Author:
ansari
Message:

gyors

Location:
trunk/Poubelle/archTOI.old
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archTOI.old/archtoi.cc

    r400 r406  
    1515
    1616using namespace std;
     17
     18#ifdef __MWERKS__
     19#include "Events.h"
     20#include "LowMem.h"
     21#include "sioux.h"
     22static int macSleepTicks = 0;
     23static int macRunTicks = 10;
     24static void yield()
     25{
     26    EventRecord theEvent;
     27    static long int macLastTicks;
     28    long int ticks = LMGetTicks();
     29    if (ticks - macLastTicks >= macRunTicks) {
     30      if (WaitNextEvent(everyEvent, &theEvent,macSleepTicks,0))
     31        SIOUXHandleOneEvent(&theEvent);
     32      macLastTicks = LMGetTicks();
     33    }
     34}
     35#endif
    1736
    1837
     
    203222  while (iter.Next()) {
    204223    int nn = iter.getSampleIndex();
     224    #ifdef __MWERKS__
     225    yield();
     226    #endif
    205227     if (nn%200 == 0) {
    206228       cout << "."; cout.flush();
  • trunk/Poubelle/archTOI.old/toiiter.cc

    r401 r406  
    359359  }
    360360
    361   // trigger sur info indexee dans bloc bolo ou bloc sst ?
    362   if (trigMask & (block_bolo_mask | block_sst_mask)) {
     361  // trigger sur info indexee dans bloc bolo, bloc gyro ou bloc sst ?
     362  if (trigMask & (block_bolo_mask | block_sst_mask | block_gyro_mask )) {
    363363    imes++;
    364364    if (imes < file->nEchBlock()) return true;
Note: See TracChangeset for help on using the changeset viewer.