Threading modeule and condition??
Christopher T King
squirrel at WPI.EDU
Fri Jul 23 21:49:47 CEST 2004
On 23 Jul 2004, Ishwar Rattan wrote:
> how do I insttantiate 'cv' the condition object in the first place. A code
> fragment will be helpful.
>>> from threading import Condition
>>> cv = Condition()
Just like any object ;)
Just make sure you do this _before_ creating your threads, so that the
object is shared by all the threads when they are created.
More information about the Python-list