Multi-process logic changed to multi-thread logic
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user