[Python-ideas] Simpler thread synchronization using "Sticky Condition"
richard.whitehead at ieee.org
Wed Mar 27 05:39:26 EDT 2019
Thanks very much for your reply. Everything you say is true, and the system can certainly be made to work (and without the performance problem I described) using only Condition variables.
I think the correct version of my pseudo-code becomes:
send_data_to_receiver() # I think this has to be done inside the lock on the Condition
while data available:
with condition: # only sleep when we have nothing to do
More information about the Python-ideas