From: "Simon Kröger" Date: 2005-09-03T08:30:43+09:00 Subject: Re: Idiomatic conversion of yielding block to array Jacob Fugal wrote: > On 9/2/05, Jacob Fugal wrote: > >>On 9/2/05, Simon Kr�ger wrote: >> >>>But what exactly isn't thread safe? SizedQueue is. >> >>Unless SizedQueue is built with threads in mind and does alternating >>blocking on pushes (<<) and pops. If it does, I apologize. > > > Again, I need to proofread my posts better. That should read "Only if" > instead of "Unless". > > Jacob Fugal It is a _sized_ queue wich i initailized to be of size 1, so there is only 1 item max in the queue at any given time. This comes from a lib called 'thread' so i would assume that it is in fact "built with threads in mind". It blocks if there is an item in it and you want to write and it block if there is no such item and you want to read. cheers Simon