partially revert 9ed3312, don't perform locking on isGranted(), isGroup() and isNetGranted();

pull/85/head
Bryan Biedenkapp 10 months ago
parent 9ed3312438
commit 2b8c7d4c91

@ -433,8 +433,6 @@ bool AffiliationLookup::isChBusy(uint32_t chNo) const
bool AffiliationLookup::isGranted(uint32_t dstId) const bool AffiliationLookup::isGranted(uint32_t dstId) const
{ {
std::lock_guard<std::mutex> lock(m_mutex);
if (dstId == 0U) { if (dstId == 0U) {
return false; return false;
} }
@ -457,8 +455,6 @@ bool AffiliationLookup::isGranted(uint32_t dstId) const
bool AffiliationLookup::isGroup(uint32_t dstId) const bool AffiliationLookup::isGroup(uint32_t dstId) const
{ {
std::lock_guard<std::mutex> lock(m_mutex);
if (dstId == 0U) { if (dstId == 0U) {
return true; return true;
} }
@ -476,8 +472,6 @@ bool AffiliationLookup::isGroup(uint32_t dstId) const
bool AffiliationLookup::isNetGranted(uint32_t dstId) const bool AffiliationLookup::isNetGranted(uint32_t dstId) const
{ {
std::lock_guard<std::mutex> lock(m_mutex);
if (dstId == 0U) { if (dstId == 0U) {
return false; return false;
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.