mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-11-01 11:17:52 +00:00
Reducing memory footprint.
This commit is contained in:
@@ -20,9 +20,10 @@ namespace OpenWifi {
|
||||
void AddSerialNumber(const std::string &SerialNumber);
|
||||
void DeleteSerialNumber(const std::string &SerialNumber);
|
||||
void FindNumbers(const std::string &SerialNumber, uint HowMany, std::vector<uint64_t> &A);
|
||||
inline bool NumberExists(const std::string &SerialNumber) {
|
||||
/* inline bool NumberExists(const std::string &SerialNumber) {
|
||||
return NumberExists(Utils::SerialNumberToInt(SerialNumber));
|
||||
}
|
||||
*/
|
||||
inline bool NumberExists(uint64_t SerialNumber) {
|
||||
std::lock_guard G(Mutex_);
|
||||
return std::find(SNs_.begin(),SNs_.end(),SerialNumber)!=SNs_.end();
|
||||
|
||||
Reference in New Issue
Block a user