bpo-12822: use monotonic clock for condvar if possible (GH-11723)

This commit is contained in:
Inada Naoki 2019-02-20 10:00:09 +09:00 committed by GitHub
parent 46a97920fe
commit 001fee14e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 87 additions and 51 deletions

View file

@ -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();