<div dir="auto">My 2 cent's worth, don't even think about it.</div><div class="gmail_extra"><br><div class="gmail_quote">On Apr 15, 2017 3:27 AM, "Serhiy Storchaka" <<a href="mailto:storchaka@gmail.com">storchaka@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 15.04.17 11:55, Stephen J. Turnbull wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Serhiy Storchaka writes:<br>
<br>
> The first thread just sets the running flag (as in current code). Due to<br>
> GIL this doesn't need additional synchronization.<br>
<br>
Can we assume this lack of additional synchronization for other<br>
implementations? If not, do we care?<br>
</blockquote>
<br>
Other implementations should have atomic test-and-set operations for the running flag. Or other ways to prevent a race condition. So yes, we can assume this.<br>
<br>
<br>
______________________________<wbr>_________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofco<wbr>nduct/</a><br>
</blockquote></div></div>