[issue4293] Thread Safe Py_AddPendingCall

Antoine Pitrou report at bugs.python.org
Mon Jan 5 14:59:08 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

Would it be possible to rework your code so as not to define two
versions of Py_AddPendingCall() and Py_MakePendingCalls(), only putting
`#ifdef WITH_THREAD` sections where it's necessary? Or would it make the
code too quirky?

Also, it would be nice to have a test for this specific feature (e.g.
using a dedicated function in the _testcapi module), but perhaps it
isn't a showstopper either.

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4293>
_______________________________________


More information about the Python-bugs-list mailing list