void AsyncLogging::threadFunc() 的防止日志堆积的部分是不是写的有点琐碎了? #664
Unanswered
Tracker647
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
如下,如果buffersToWrite内buffer数大于25,为了防止日志堆积将buffersToWrite的buffer数减少至2。
如果bufferToWrite内buffer数在[3,25]之间,最上面的if就不会触发了,但是同样将buffer数减少至2。
既然最终都只能留两个buffer,何不改成
?
Beta Was this translation helpful? Give feedback.
All reactions