Skip to content

Instantly share code, notes, and snippets.

@sithhell
Created August 2, 2017 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sithhell/2e26449236459be2803d9a998ae32042 to your computer and use it in GitHub Desktop.
Save sithhell/2e26449236459be2803d9a998ae32042 to your computer and use it in GitHub Desktop.
diff --git a/hpx/lcos/detail/promise_base.hpp b/hpx/lcos/detail/promise_base.hpp
index 46235cdcea..0369598320 100644
--- a/hpx/lcos/detail/promise_base.hpp
+++ b/hpx/lcos/detail/promise_base.hpp
@@ -47,6 +47,13 @@ namespace lcos {
f_ = std::move(f);
}
+ virtual future_status
+ wait_until(util::steady_clock::time_point const& abs_time,
+ error_code& ec = throws)
+ {
+ return this->future_data<Result>::wait_until(abs_time, ec);
+ }
+
private:
void do_run()
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment