Changeset 406 in Sophya for trunk/Poubelle/archTOI.old/archtoi.cc


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

gyors

File:
1 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();
Note: See TracChangeset for help on using the changeset viewer.