Dennis Lee Bieber wrote:
> On 11 May 2006 17:02:51 -0700, "placid" <[EMAIL PROTECTED]> declaimed the
> following in comp.lang.python:
>
>
> > I have a thread that has a job Queue, it continuosly polls this queue
> > to see if there are any jobs for it, what i really wont to be able to
> > do is, when the queue is empty, i want the thread to pause (or more
> > technical, i want the thread to block) until the queue gets populated
> > again. Is this possible ?
> >
>       Did you read the documentation for Queue methods?

there is no need to be patronizing about this dude, im just learning
Python in my spare time, as im a Intern Software Engineer

>
>       x = q.get(true) #blocks until data is available


this is even better, thanks dude

> --
>       Wulfraed        Dennis Lee Bieber               KD6MOG
>       [EMAIL PROTECTED]               [EMAIL PROTECTED]
>               HTTP://wlfraed.home.netcom.com/
>       (Bestiaria Support Staff:               [EMAIL PROTECTED])
>               HTTP://www.bestiaria.com/

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to