Replies: 1 comment
-
TimerQueue::cancelInLoop() 中 ActiveTimerSet::find() 的时间复杂度是 O(log N); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Muduo库在TimerQueue中为什么要设置两个set,我发现 ActiveTimerSet是按地址排序的,注释上写时为了cancel,但是在cancel函数中也可以用TimerList来find进行取消,请问用两个set的初衷是什么
Beta Was this translation helpful? Give feedback.
All reactions