projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use intrusive base hook rather than a member hook
[folly.git]
/
folly
/
io
/
async
/
HHWheelTimer.cpp
diff --git
a/folly/io/async/HHWheelTimer.cpp
b/folly/io/async/HHWheelTimer.cpp
index 6433581e83cd91935160e681c911d086967b85e1..ca372502b481f6b18c2c68cb48189068febc0370 100644
(file)
--- a/
folly/io/async/HHWheelTimer.cpp
+++ b/
folly/io/async/HHWheelTimer.cpp
@@
-68,7
+68,7
@@
void HHWheelTimer::Callback::cancelTimeoutImpl() {
assert(wheel_->count_ == 0);
wheel_->AsyncTimeout::cancelTimeout();
}
-
hook_.
unlink();
+ unlink();
if ((-1 != bucket_) && (wheel_->buckets_[0][bucket_].empty())) {
auto bi = makeBitIterator(wheel_->bitmap_.begin());
*(bi + bucket_) = false;