From 869512e65178e03e9fefe27163514075c0996f84 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Mon, 21 Aug 2023 16:33:32 +0100 Subject: [PATCH] [*] Optimization: Remove two stupid branches in RWLock --- Source/Threading/Primitives/AuRWLock.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Source/Threading/Primitives/AuRWLock.cpp b/Source/Threading/Primitives/AuRWLock.cpp index 1ad2a2ad..8c27d201 100644 --- a/Source/Threading/Primitives/AuRWLock.cpp +++ b/Source/Threading/Primitives/AuRWLock.cpp @@ -321,12 +321,6 @@ namespace Aurora::Threading::Primitives AuAtomicSub(&this->writersPending_, 1); return true; } - else - { - // TBD: - this->GetConditionWriter().Broadcast(); - this->GetCondition().Broadcast(); - } } return true; @@ -412,12 +406,6 @@ namespace Aurora::Threading::Primitives AuAtomicSub(&this->writersPending_, 1); return true; } - else - { - // TBD: - this->GetConditionWriter().Broadcast(); - this->GetCondition().Broadcast(); - } } return true;