mirror of
https://github.com/joyieldInc/predixy.git
synced 2025-12-24 22:46:41 +08:00
Update Logger.cpp
This commit is contained in:
parent
885fb4eca9
commit
354bde290d
@ -188,7 +188,10 @@ LogUnit* Logger::getLogUnit()
|
||||
}
|
||||
} else {
|
||||
std::unique_lock<std::mutex> lck(mMtx);
|
||||
while (!mStop) {
|
||||
while (true) {
|
||||
if (!mStop) {
|
||||
return nullptr;
|
||||
}
|
||||
if (!mFree.empty()) {
|
||||
log = mFree.back();
|
||||
mFree.resize(mFree.size() - 1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user