I'd like to do a "waitForMultipleObjects" but I
can't find such a thing in python thread or threading modules.
I have one thread that loops waiting for any one of
four other threads to give him information, and of course the main thread may
notify him to stop looping and die.
So I've got an event object for each of
the four threads and I want to wait for any one of them to become
true.
I suppose I could use a single Condition object
that each thread sets, but that doesn't seem as efficient as waitfor multiple
objects (from the win32api).
Is this something that Python needs? Is it easy to
implement for different platforms? Is it there, but I haven't noticed
it?
Any Ideas?
Thanks
Matthew Sherborne
|
- Re: Threading question Matthew Sherborne
- Re: Threading question Trent Mick
- Re: Threading question David Ascher
- RE: Threading question Michael Robin
- Re: Threading question Matthew Sherborne
- Re: Threading question Syver Enstad