SharedStreams (was: [BUG][FIX] SharedQueue flushing (a plea for consideration))

goran.krampe at bluefish.se goran.krampe at bluefish.se
Fri Jun 13 09:19:00 UTC 2003


"Brent Vukmer" <bvukmer at blackboard.com> wrote:
> 
> > IIRC these classes are more robust than SharedQueue (it had a couple
> of sneaky bugs).
> 
> Is there a suite of test cases and/or examples that exposes the bugs in
> SharedQueue?  Does SharedBufferStream pass those tests?

Nah, sorry. BUT there is a 24-posts thread about it from april last year
(search some archive for "SharedQueue"). It even includes submitted
changesets that never got incorporated. In short we discuss bugs in
size/isEmpty/nextOrNil and perhaps some more.

You really need to read that thread because these are subtle bugs that
are thread related and not easily explained in one line.

But anyway, if anyone wants to pick up that code and submit etc, it
would be great.
And of course some tests would also be great - it is a bit tricky though
to test different threading scenarios.

As for SharedStreams there are at least a bunch of example methods that
could probably easily be turned into unit tests.

regards, Göran



More information about the Squeak-dev mailing list