Threading and Conditions
gmcm at hypernet.com
Thu Mar 23 03:25:43 CET 2000
Ken Seehof wrote:
> Gordon McMillan wrote:
> > Ken Seehof wrote:
> > . . .
> > > Unfortunately, the documentation is inadequate. Does anyone know of a
> > > whole sample program using conditions?
> > The test code at the bottom of the module.
> That's the inadequate documentation I was talking about. This "example"would
> be much better if it showed the whole interaction, including creating the
> threads and conditions. An example should be a working script that
> demonstrates a feature. Anyway, I did manage to get it to work.
> Here's the "example":
> # Consume one item
> while not an_item_is_available():
> # Produce one item
Where did you get your threading module? For 1.5.2, the test
code begins at line 550 and extends to the end (line 638) and
is a complete test program. The lines you quote aren't even
part of it.
More information about the Python-list