[squeak-dev] Re: Delay time question
Igor Stasenko
siguctua at gmail.com
Thu Feb 28 06:40:00 UTC 2008
2008/2/28 John M McIntosh <johnmci at smalltalkconsulting.com>:
> os-x carbon
> a SortedCollection(830->10 149->11 13->1 6->12 1->13 1->14)
>
> well but it depends on the unix code to do things and that's a bit
> fuzzy at time, mind Andreas example below led to many sleepless
> hours... If you peek at the mac code it did at one time do this which
> gave 99.9% accuracy.
>
> err = pthread_mutex_lock(&gSleepLock);
> err =
> pthread_cond_timedwait_relative_np
> (&gSleepLockCondition,&gSleepLock,&tspec);
> err = pthread_mutex_unlock(&gSleepLock);
>
> But then someone reported dropped socket accepts because the
> pthread_cond_timedwait_relative_np would fail to service the
> Socket requests and I had to revert to Ian's unix code, which on os-x
> is less accurate but better than some unix machines.
>
I hope if you add my sleepless hours i spent making delays for hydra,
you can come out with
better results. :)
--
Best regards,
Igor Stasenko AKA sig.
More information about the Squeak-dev
mailing list
|