How to implement events on Unix?

Lex Spoon lex at cc.gatech.edu
Tue Feb 13 15:26:49 UTC 2001


"Raab, Andreas" <Andreas.Raab at disney.com> wrote:
> > But doesn't the ioProcessEvents() function get periodically called,
> > anyway? 
> 
> Yes, about 2 times per second in checkForInterrupts().
> 
> > If so, on VM's that don't have truly async notification, they can
> > check in ioProcessEvents()....  The same applies to sockets and sound.
> 
> And have an input delay of .5 seconds for every mouse click?! I don't quite
> think so ;-)

Ahh.  So why is it a .5 second delay?  Why not .01?



-Lex




> 
> > I suppose, though, that an old VM won't have the 
> > semaphore-setting primitive.
> > So, the big advantage to this image-level fallback loop seems 
> > to be support for old VM's.
> 
> Absolutely. And there have been times (right after these changes were made)
> when there simply weren't any VMs out there supporting it ;-)
>





More information about the Squeak-dev mailing list