mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
gh-99113: Make Sure the GIL is Acquired at the Right Places (gh-104208)
This is a pre-requisite for a per-interpreter GIL. Without it this change isn't strictly necessary. However, there is no real downside otherwise.
This commit is contained in:
parent
fff193bbfe
commit
92d8bfffbf
4 changed files with 113 additions and 40 deletions
|
|
@ -100,7 +100,9 @@ extern int _PyEval_ThreadsInitialized(void);
|
|||
extern PyStatus _PyEval_InitGIL(PyThreadState *tstate, int own_gil);
|
||||
extern void _PyEval_FiniGIL(PyInterpreterState *interp);
|
||||
|
||||
extern void _PyEval_AcquireLock(PyThreadState *tstate);
|
||||
extern void _PyEval_ReleaseLock(PyThreadState *tstate);
|
||||
extern PyThreadState * _PyThreadState_SwapNoGIL(PyThreadState *);
|
||||
|
||||
extern void _PyEval_DeactivateOpCache(void);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue