summaryrefslogtreecommitdiffstats
path: root/Python/lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/lock.c')
-rw-r--r--Python/lock.c7
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