mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Add a new API, PyThreadState_DeleteCurrent() that combines
PyThreadState_Delete() and PyEval_ReleaseLock(). It is only defined if WITH_THREAD is defined.
This commit is contained in:
parent
5f827f4e9b
commit
2975786dec
2 changed files with 30 additions and 4 deletions
|
@ -66,6 +66,9 @@ DL_IMPORT(void) PyInterpreterState_Delete(PyInterpreterState *);
|
|||
DL_IMPORT(PyThreadState *) PyThreadState_New(PyInterpreterState *);
|
||||
DL_IMPORT(void) PyThreadState_Clear(PyThreadState *);
|
||||
DL_IMPORT(void) PyThreadState_Delete(PyThreadState *);
|
||||
#ifdef WITH_THREAD
|
||||
DL_IMPORT(void) PyThreadState_DeleteCurrent(void);
|
||||
#endif
|
||||
|
||||
DL_IMPORT(PyThreadState *) PyThreadState_Get(void);
|
||||
DL_IMPORT(PyThreadState *) PyThreadState_Swap(PyThreadState *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue