bug in delay?
ned at squeakland.org
Tue Jan 6 19:45:56 UTC 2004
On Tuesday 06 January 2004 8:56 am, mdc at keko.com.ar wrote:
> > Yes, and the AccessProtect critical: [
> > part is should prevent the sorted collection referred to by
> > SuspendedDelays from being altered as the add: is being run on the
> > object.
> > So, either:
> > a) the critical: is failing to work?
> > b) AccessProtect is getting excessive semaphore signals from
> > somewhere, somehow?
Did you ever signal a semaphore from the ProcessBrowser?
> My app usses Delay heavily the follow snip is used many times.
> [ ( Delay forMilliseconds: 20 ) wait.
> self doSomeThing ] repeat.
This isn't as good as:
d := Delay forMilliseconds: 20.
[ d wait. self doSomeThing ] repeat.
because you're constantly creating new delays when you don't need to.
More information about the Squeak-dev