I will walk the rice paper master but please stop calling me
grasshopper.

Korosh.

On Tue, 2004-01-27 at 22:08, Niclas Hedhman wrote:
> On Tuesday 27 January 2004 11:51, korosh afshar wrote:
> > My application can't block on empty queue though.  The oswego queue has
> > timeout and retry features in it I need to use.
> 
> Ok, although that is what I normally use. Just change to;
> 
> long maxWait = 14;  / max time to wait
> if( m_Queue.size() == 0 )
>     wait( maxWait );
> if( m_Queue.size() == 0 )
>     return null;  // or exception if that is better
> return m_Queue.remove(0);
> 
> 
> Niclas
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to