[BUG]Delays and relinquishProcessor interact badly
John M McIntosh
johnmci at smalltalkconsulting.com
Fri Aug 18 04:14:35 UTC 2000
on 8/17/00 8:08 PM, Raab, Andreas at Andreas.Raab at disney.com wrote:
> Tim,
>
>> If you are expecting a Delay to finish in say 300 ms, and the
>> idle loop gets to run (you're waiting on a Delay after all) then
>> the rP prim will (attempt to) wait 1000ms.
>
> The argument to ioRelinquishProcessorBlabla is *micro* seconds. So you'll
> wait for 1 *milli* second.
>
> - Andreas
>
Of course on the macintosh ioRelinquishProcessor just polls to the OS, but
to complicate things this polling only occurs 30 times a second, and if a
poll occurs you could lose control for say 100ms, or < 1 ms.
--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
===========================================================================
Custom Macintosh programming & various Smalltalk dialects
PGP Key: DSS/Diff/46FC3BE6
Fingerprint=B22F 7D67 92B7 5D52 72D7 E94A EE69 2D21 46FC 3BE6
===========================================================================
More information about the Squeak-dev
mailing list
|