aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/scheduler.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-07 06:54:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-07 06:54:09 +0200
commit0592557e49cc7d6a2da2b5d9f5aaaeefbfcf7248 (patch)
tree8c3fc5e85769d3ffd0a697d6bfb97d70d6d6cebf /libbuild2/scheduler.hxx
parentc08b0ce638361a84d3648aacd4ffbd0da6c357d8 (diff)
Make deadlock detection loop more robust
Diffstat (limited to 'libbuild2/scheduler.hxx')
-rw-r--r--libbuild2/scheduler.hxx7
1 files changed, 7 insertions, 0 deletions
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: