lurking signals in EventSensor

Ned Konz ned at bike-nomad.com
Fri Jul 4 15:16:50 UTC 2003


On Friday 04 July 2003 07:53 am, David T. Lewis wrote:
> As an aside, the Unix VM with an X display could probably be made
> to do this without resorting to pthreads. All external events are
> going to originate from one of:
>  1) external files
>  2) sockets
>  3) events originating from the X server (which arrive on a socket
> channel) 4) OS signals
>
> The first three can all be handled by the aio mechanism in Ian's
> VM, and the forth can be handled in the obvious way. All four can
> therefore trigger a Squeak Semaphore, and no VM level threads would
> be required.

Yes, but for #3 if you wanted to trigger a Squeak Semaphore directly 
from the X server, you'd have to move X event handling up into 
Squeak, right? Right now, the aio handler for the X server socket 
doesn't directly trigger a SqueakSemaphore (at least not until 
there's some mouse/keyboard/drag event ready).

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



More information about the Squeak-dev mailing list