Paul Goins <paul.d.go...@intel.com> added the comment:

Focusing on the Windows case specifically...  One way to possibly make this 
work (although perhaps not as clean as may be desired) would be to add polling 
logic into the thread_nt.h version of PyThread_acquire_lock_timed.

That would have the benefit of avoiding the complexity of the various "non 
recursive mutex" implementations (i.e. semaphores vs "emulated" condition 
variables vs native condition variables) and may be less code than setting up 
"alertable" WaitForObjectSignleObjectEx calls (plus whatever else needs to be 
done for the SRW-lock-based code path).

Thoughts or feedback?  (I've not done any mainline Python commits yet so I'm 
totally ready to be completely wrong or misguided here.)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue21822>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to