From 0592557e49cc7d6a2da2b5d9f5aaaeefbfcf7248 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 7 Aug 2019 06:54:09 +0200 Subject: Make deadlock detection loop more robust --- libbuild2/scheduler.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libbuild2/scheduler.hxx') diff --git a/libbuild2/scheduler.hxx b/libbuild2/scheduler.hxx index 7ceb239..99b27c9 100644 --- a/libbuild2/scheduler.hxx +++ b/libbuild2/scheduler.hxx @@ -153,6 +153,13 @@ namespace build2 void sleep (const duration&); + // Sleep without deactivating the thread. Essentially a portable + // std::this_thread::sleep_for() implementation but only with the + // milliseconds precision on some platforms. + // + static void + active_sleep (const duration&); + // Startup and shutdown. // public: -- cgit v1.1