diff options
author | Guido van Rossum <guido@python.org> | 2001-01-23 01:46:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-01-23 01:46:06 (GMT) |
commit | 2975786decbe2358b088a6200914d7c0a2818e72 (patch) | |
tree | e9bcc8b20b211af3c525ef997df7081b04413972 /Include | |
parent | 5f827f4e9b8cd1117c05246abd4ce7971a94c798 (diff) | |
download | cpython-2975786decbe2358b088a6200914d7c0a2818e72.zip cpython-2975786decbe2358b088a6200914d7c0a2818e72.tar.gz cpython-2975786decbe2358b088a6200914d7c0a2818e72.tar.bz2 |
Add a new API, PyThreadState_DeleteCurrent() that combines
PyThreadState_Delete() and PyEval_ReleaseLock(). It is only defined
if WITH_THREAD is defined.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pystate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/pystate.h b/Include/pystate.h index be56497..27ffe32 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -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 *); |