mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-12822: use monotonic clock for condvar if possible (GH-11723)
This commit is contained in:
parent
46a97920fe
commit
001fee14e0
8 changed files with 87 additions and 51 deletions
|
@ -171,6 +171,7 @@ PyEval_InitThreads(void)
|
|||
{
|
||||
if (gil_created())
|
||||
return;
|
||||
PyThread_init_thread();
|
||||
create_gil();
|
||||
take_gil(_PyThreadState_GET());
|
||||
_PyRuntime.ceval.pending.main_thread = PyThread_get_thread_ident();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue