[issue12850] [PATCH] stm.atomic

Nick Coghlan report at bugs.python.org
Fri Sep 2 08:02:17 CEST 2011


Nick Coghlan <ncoghlan at gmail.com> added the comment:

I quite like the last idea. Something like:

_PyEval_SuspendOtherThreads(PyThreadState *tstate, PyThread_lock_type lock);

  All threads other than tstate will be prevented from executing further interpreter bytecodes until "lock" is released.

Offering this API might pose a problem for various "superinstruction" concepts in the future, though.

----------

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


More information about the Python-bugs-list mailing list