Threads
placid
Bulkan at gmail.com
Fri May 12 03:09:04 EDT 2006
Dennis Lee Bieber wrote:
> On 11 May 2006 17:02:51 -0700, "placid" <Bulkan at gmail.com> 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
> wlfraed at ix.netcom.com wulfraed at bestiaria.com
> HTTP://wlfraed.home.netcom.com/
> (Bestiaria Support Staff: web-asst at bestiaria.com)
> HTTP://www.bestiaria.com/
More information about the Python-list
mailing list