Multi-process logic changed to multi-thread logic

This commit is contained in:
2025-05-31 15:00:38 +02:00
parent 23d0216a27
commit f886dc7162
2 changed files with 58 additions and 92 deletions

View File

@@ -101,6 +101,19 @@ public:
return ret;
}
bool isAnybodyInQueue()
{
std::lock_guard<std::mutex> lock(mtx);
for (std::map<std::string, bool>::iterator it = users.begin(); it != users.end(); ++it)
{
if (it->second)
return true;
}
return false;
}
};
#endif // _USERMAN_H