Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm
In directory sc8-pr-cvs1:/tmp/cvs-serv30615/squeak/platforms/Mac OS/vm
Modified Files:
sqMacTime.c
Log Message:
3.6.0b2 Slight rewrite of how aioPoll is called, plus a bit of code cleanup
Index: sqMacTime.c
===================================================================
RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/sqMacTime.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** sqMacTime.c 3 Oct 2003 19:04:18 -0000 1.11
--- sqMacTime.c 4 Oct 2003 04:46:39 -0000 1.12
***************
*** 247,250 ****
--- 247,251 ----
}
+ aioPoll(0);
setInterruptCheckCounter(0);
now = (ioMSecs() & 536870911);
***************
*** 253,257 ****
realTimeToWait = 16;
else {
- aioPoll(0);
return;
}
--- 254,257 ----
***************
*** 259,264 ****
realTimeToWait = getNextWakeupTick() - now;
- aioPoll(0);
-
tspec.tv_sec= realTimeToWait / 1000;
tspec.tv_nsec= (realTimeToWait % 1000)*1000000;
--- 259,262 ----
***************
*** 269,282 ****
- //JMM foo usleep(microSeconds);
- //JMM fooif (getNextWakeupTick() != 0 && (ioMSecs() & 536870911) >= getNextWakeupTick())
- //JMM foo interruptCheckCounter = 0;
- /* This is unix code, but seems to be problem under osx
- {
- struct timeval tv;
- tv.tv_sec= microSeconds / 1000000;
- tv.tv_usec= microSeconds % 1000000;
- select(0, 0, 0, 0, &tv);
- }*/
#else
#if !I_AM_CARBON_EVENT
--- 267,270 ----
|