|
From: John M M. <jo...@us...> - 2003-12-16 22:08:38
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm
In directory sc8-pr-cvs1:/tmp/cvs-serv16222/squeak/platforms/Mac OS/vm
Modified Files:
sqMacTime.c
Log Message:
3.7.0b3 change call to aioPoll, use it versus pthread wait so we process socket interrupts when sleeping.
Index: sqMacTime.c
===================================================================
RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/sqMacTime.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** sqMacTime.c 14 Oct 2003 19:46:38 -0000 1.13
--- sqMacTime.c 16 Dec 2003 22:08:32 -0000 1.14
***************
*** 247,251 ****
}
- aioPoll(0);
setInterruptCheckCounter(0);
now = (ioMSecs() & 536870911);
--- 247,250 ----
***************
*** 259,268 ****
realTimeToWait = getNextWakeupTick() - now;
! tspec.tv_sec= realTimeToWait / 1000;
tspec.tv_nsec= (realTimeToWait % 1000)*1000000;
err = pthread_mutex_lock(&gSleepLock);
err = pthread_cond_timedwait_relative_np(&gSleepLockCondition,&gSleepLock,&tspec);
! err = pthread_mutex_unlock(&gSleepLock);
--- 258,269 ----
realTimeToWait = getNextWakeupTick() - now;
! aioPoll(realTimeToWait*1000);
!
! /* tspec.tv_sec= realTimeToWait / 1000;
tspec.tv_nsec= (realTimeToWait % 1000)*1000000;
err = pthread_mutex_lock(&gSleepLock);
err = pthread_cond_timedwait_relative_np(&gSleepLockCondition,&gSleepLock,&tspec);
! err = pthread_mutex_unlock(&gSleepLock); */
***************
*** 288,289 ****
--- 289,298 ----
}
+ void sqHeartBeatActions(int now) {
+ static int past=0;
+
+ if ((now-past) > 10) {
+ aioPoll(0);
+ }
+ past = now;
+ }
\ No newline at end of file
|