Getting Squeak to stop hanging on file I/O (and to start blocking threads on serial)?

David T. Lewis lewis at mail.msen.com
Sat Apr 13 22:48:30 UTC 2002


On Sun, Apr 14, 2002 at 12:26:30AM +0200, Andreas Raab wrote:
> > That's similar to what I'm doing. Start a Win32 thread that does a
> > read, then Interpreter>>signalSemaphoreWithIndex when the 
> > read completes. It works, but it's complicated and (pending
> > further debugging) unreliable.
> 
> How so? Did you check sqWin32AsyncFile.c?! It does exactly what you're
> describing and -from my experience- works just nicely.

On Sat, Apr 13, 2002 at 03:10:10PM -0700, Ned Konz wrote:
>
> Look at  synchronizedSignalSemaphoreWithIndex() in sqWin32Window.c.
> I'm not sure, but it looks like that's already set up for this kind
> of activity. Andreas should be able to answer this.

Aha, I need to use synchronizedSignalSemaphoreWithIndex(). Thanks Andreas
and Ned.

Dave




More information about the Squeak-dev mailing list