diff options
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: |