mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
parent
b45f351832
commit
6b4953fd3d
5 changed files with 28 additions and 2 deletions
|
@ -229,6 +229,15 @@ PyEval_InitThreads(void)
|
|||
main_thread = PyThread_get_thread_ident();
|
||||
}
|
||||
|
||||
void
|
||||
_PyEval_FiniThreads(void)
|
||||
{
|
||||
if (interpreter_lock)
|
||||
PyThread_free_lock(interpreter_lock);
|
||||
interpreter_lock = 0;
|
||||
main_thread = 0;
|
||||
}
|
||||
|
||||
void
|
||||
PyEval_AcquireLock(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue