projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix bizarre optimization
[folly.git]
/
folly
/
wangle
/
ManualExecutor.cpp
diff --git
a/folly/wangle/ManualExecutor.cpp
b/folly/wangle/ManualExecutor.cpp
index eed8a84d597d7f34c5d0111d79ebdc03cf3dd766..2c0813011ff7e72109b1bd7e57541f1c2947b418 100644
(file)
--- a/
folly/wangle/ManualExecutor.cpp
+++ b/
folly/wangle/ManualExecutor.cpp
@@
-94,4
+94,11
@@
void ManualExecutor::wait() {
}
}
+void ManualExecutor::advanceTo(TimePoint const& t) {
+ if (t > now_) {
+ now_ = t;
+ }
+ run();
+}
+
}} // namespace