diff options
author | Victor Stinner <vstinner@python.org> | 2024-02-20 16:50:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 16:50:43 (GMT) |
commit | d207c7cd5a8c0d3e5f6c5eb947243e4afcd718b0 (patch) | |
tree | 3c48d470b84dce1673490fb262e4733c105cd315 /Python/lock.c | |
parent | e976baba99a5c243ff3a3b5ef2fd14608a398338 (diff) | |
download | cpython-d207c7cd5a8c0d3e5f6c5eb947243e4afcd718b0.zip cpython-d207c7cd5a8c0d3e5f6c5eb947243e4afcd718b0.tar.gz cpython-d207c7cd5a8c0d3e5f6c5eb947243e4afcd718b0.tar.bz2 |
gh-110850: Cleanup pycore_time.h includes (#115724)
<pycore_time.h> include is no longer needed to get the PyTime_t type
in internal header files. This type is now provided by <Python.h>
include. Add <pycore_time.h> includes to C files instead.
Diffstat (limited to 'Python/lock.c')
-rw-r--r-- | Python/lock.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/lock.c b/Python/lock.c index 0c0d298..a4b044e 100644 --- a/Python/lock.c +++ b/Python/lock.c @@ -5,12 +5,13 @@ #include "pycore_lock.h" #include "pycore_parking_lot.h" #include "pycore_semaphore.h" +#include "pycore_time.h" // _PyTime_GetMonotonicClock() #ifdef MS_WINDOWS -#define WIN32_LEAN_AND_MEAN -#include <windows.h> // SwitchToThread() +# define WIN32_LEAN_AND_MEAN +# include <windows.h> // SwitchToThread() #elif defined(HAVE_SCHED_H) -#include <sched.h> // sched_yield() +# include <sched.h> // sched_yield() #endif // If a thread waits on a lock for longer than TIME_TO_BE_FAIR_NS (1 ms), then |