diff options
author | Inada Naoki <methane@users.noreply.github.com> | 2019-02-20 01:00:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-20 01:00:09 (GMT) |
commit | 001fee14e0f2ba5f41fb733adc69d5965925a094 (patch) | |
tree | 1f43d3cd42920f5ef131b840c444332d4023de90 /Python/ceval.c | |
parent | 46a97920feaf4094436b2cdb32d2bd2fab3b59a5 (diff) | |
download | cpython-001fee14e0f2ba5f41fb733adc69d5965925a094.zip cpython-001fee14e0f2ba5f41fb733adc69d5965925a094.tar.gz cpython-001fee14e0f2ba5f41fb733adc69d5965925a094.tar.bz2 |
bpo-12822: use monotonic clock for condvar if possible (GH-11723)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 3db7c7c..03456f6 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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(); |