Hi,

At Thu, 5 Oct 2000 23:47:42 +0900,
hipster <hipster / xs4all.nl> wrote:
> To acquire a clean, simple and understandable set of synchronisation
> primitives it would, IMO, be a Good Thing to implement all of them
> _only_ using the Thread.critical primitive (which Thread.exclusive
> nicely wraps). At the possible cost of some code duplication,
> decoupling is achieved. Easier to test, easier to maintain.

I don't insist that Queue should be implemented by ConditionVariable.
It's just an example of ConditionVariable usage.

But I think Ruby should supply another synchronization primitive
instead of Thread.critical for speed.
It may be re-entrant mutex.

Shugo