Fix bizarre optimization
[folly.git] / folly / wangle / ManualExecutor.cpp
index eed8a84d597d7f34c5d0111d79ebdc03cf3dd766..2c0813011ff7e72109b1bd7e57541f1c2947b418 100644 (file)
@@ -94,4 +94,11 @@ void ManualExecutor::wait() {
   }
 }
 
+void ManualExecutor::advanceTo(TimePoint const& t) {
+  if (t > now_) {
+    now_ = t;
+  }
+  run();
+}
+
 }} // namespace