Commit a082ba98 authored by Misha Shneerson's avatar Misha Shneerson Committed by Pavlo Kushnir

isDetachable for HHWheelTimer

Summary: title

Test Plan: unit tests

Reviewed By: andrei.bajenov@fb.com

Subscribers: trunkagent, mcduff, hitesh, alandau, bmatheny, njormrod, mshneer, folly-diffs@, andreib, davejwatson

FB internal diff: D1666499

Tasks: 5563183

Signature: t1:1666499:1415347256:d58c8bbe952385c1c96f7f8cc6ae7f02216c56bb
parent ff9b70f3
......@@ -187,6 +187,10 @@ class HHWheelTimer : private folly::AsyncTimeout,
catchupEveryN_ = everyN;
}
bool isDetachable() const {
return !folly::AsyncTimeout::isScheduled();
}
using folly::AsyncTimeout::attachEventBase;
using folly::AsyncTimeout::detachEventBase;
using folly::AsyncTimeout::getTimeoutManager;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment