[BUG][FIX] interrupt driven EventSensor ( could somebody provide detailed review, please? )

John M McIntosh johnmci at smalltalkconsulting.com
Thu Jul 31 20:56:02 UTC 2003


Well the major change in this patch is to pause the silly polling of  
input devices that the SystemWindow does.

a) Fix SystemWindow
	fine but next fellow in will make same coding mistake.

b) If mouse information is only updated every 17ms or 10ms? does it  
make sense to read them 10 times per ms?
(hint as far as I can tell on the mac updates sensor data about every  
17ms)
Table PC (if any exist) do they update every 5ms, every ms?  do we care?


So even if you propose a new solution I think you'll need something to  
prevent excessive spinning looking at
the sensor data just so other background work can be performed, either  
within Squeak or other tasks on the machine.
Certainly for VMs that support interrupt driven events, I don't want to  
spin cycles POLLING...

On Thursday, July 31, 2003, at 01:34  PM, Brent Vukmer wrote:

>
>> Indeed. I'm hoping to foster discussion and suggestions for
>> cleaner code right now.
>>
>
> Hurray, Tim! (Or should I say "Huzzah" ?)
>
>
>
--
======================================================================== 
===
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
======================================================================== 
===



More information about the Squeak-dev mailing list