We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
void HeapTimer::tick() { /* 清除超时结点 */ if(heap_.empty()) { return; } while(!heap_.empty()) { TimerNode node = heap_.front(); if(std::chrono::duration_cast<MS>(node.expires - Clock::now()).count() > 0) { break; } node.cb(); pop(); } }
这个可以删了吧,没必要啊。。 if(heap_.empty()) { return; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
这个可以删了吧,没必要啊。。
if(heap_.empty()) {
return;
}
The text was updated successfully, but these errors were encountered: