diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-07 06:54:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-07 06:54:09 +0200 |
commit | 0592557e49cc7d6a2da2b5d9f5aaaeefbfcf7248 (patch) | |
tree | 8c3fc5e85769d3ffd0a697d6bfb97d70d6d6cebf /libbuild2/scheduler.hxx | |
parent | c08b0ce638361a84d3648aacd4ffbd0da6c357d8 (diff) |
Make deadlock detection loop more robust
Diffstat (limited to 'libbuild2/scheduler.hxx')
-rw-r--r-- | libbuild2/scheduler.hxx | 7 |
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: |