We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f069515 commit 7685474Copy full SHA for 7685474
src/UtilsCtrl/ThreadPool/Thread/UThreadSecondary.h
@@ -107,7 +107,7 @@ class UThreadSecondary : public UThreadBase {
107
bool freeze() {
108
if (likely(is_running_)) {
109
cur_ttl_++;
110
- cur_ttl_ = std::min(cur_ttl_, config_->secondary_thread_ttl_);
+ cur_ttl_ = (std::min)(cur_ttl_, config_->secondary_thread_ttl_);
111
} else {
112
cur_ttl_--; // 如果当前线程没有在执行,则ttl-1
113
}
0 commit comments