summaryrefslogtreecommitdiffstats
path: root/build2/scheduler.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/scheduler.hxx')
-rw-r--r--build2/scheduler.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/build2/scheduler.hxx b/build2/scheduler.hxx
index 388fa61a..cd3693be 100644
--- a/build2/scheduler.hxx
+++ b/build2/scheduler.hxx
@@ -140,6 +140,13 @@ namespace build2
void
activate (bool collision = false);
+ // Sleep for the specified duration, deactivating the thread before going
+ // to sleep and re-activating it after waking up (which means this
+ // function may sleep potentially significantly longer than requested).
+ //
+ void
+ sleep (const duration&);
+
// Startup and shutdown.
//
public: