STINNER Victor <[email protected]> added the comment:
> We'd simply need to provide a new API to lock/unlock the interpreter's mutex.
Are you talking about this lock?
#define HEAD_LOCK(runtime) \
PyThread_acquire_lock((runtime)->interpreters.mutex, WAIT_LOCK)
#define HEAD_UNLOCK(runtime) \
PyThread_release_lock((runtime)->interpreters.mutex)
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue1021318>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com