Message358191
| Author |
vstinner |
| Recipients |
BreamoreBoy, ajaksu2, eric.snow, jd, jpe, pitrou, serhiy.storchaka, vstinner |
| Date |
2019年12月10日.13:46:53 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1575985613.41.0.991943761585.issue1021318@roundup.psfhosted.org> |
| In-reply-to |
| Content |
> 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) |
|