- Timestamp:
- Sep 15, 1999, 2:37:29 PM (26 years ago)
- Location:
- trunk/Poubelle/archTOI.old
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archTOI.old/archtoi.cc
r400 r406 15 15 16 16 using namespace std; 17 18 #ifdef __MWERKS__ 19 #include "Events.h" 20 #include "LowMem.h" 21 #include "sioux.h" 22 static int macSleepTicks = 0; 23 static int macRunTicks = 10; 24 static 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 17 36 18 37 … … 203 222 while (iter.Next()) { 204 223 int nn = iter.getSampleIndex(); 224 #ifdef __MWERKS__ 225 yield(); 226 #endif 205 227 if (nn%200 == 0) { 206 228 cout << "."; cout.flush(); -
trunk/Poubelle/archTOI.old/toiiter.cc
r401 r406 359 359 } 360 360 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 )) { 363 363 imes++; 364 364 if (imes < file->nEchBlock()) return true;
Note:
See TracChangeset
for help on using the changeset viewer.