Event set/clear/wait
gmcm at hypernet.com.bbs
gmcm at hypernet.com.bbs
Mon Jul 17 19:30:02 EDT 2000
More information about the Python-list mailing list
Mon Jul 17 19:30:02 EDT 2000
- Previous message (by thread): Event set/clear/wait
- Next message (by thread): Routing sys.stdout.write (print)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
j vickroy wrote: >How can software be written to determine when it is "safe" to *clear* a >threading.Event that has previously been *set*? >"safe" is intended to convey the notion that all threads issuing a >*wait* on the event are no-longer blocking because of it. You don't need to worry about it. All waiting threads are notified while the setter holds the lock. Once notified, they don't look to see if the Event is set or clear - they're unblocked. - Gordon
- Previous message (by thread): Event set/clear/wait
- Next message (by thread): Routing sys.stdout.write (print)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list