summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-11-14 06:28:12 +0100
committerbunnei <bunneidev@gmail.com>2020-11-29 10:31:51 +0100
commit9705f651b25ad622dfefd5c19ca147b93068cf47 (patch)
tree415e74d6d4dab57cb0b14176a18c8a482bfd388d
parenthle: kernel: SynchronizationObject: Use atomic_bool for is_signaled. (diff)
downloadyuzu-9705f651b25ad622dfefd5c19ca147b93068cf47.tar
yuzu-9705f651b25ad622dfefd5c19ca147b93068cf47.tar.gz
yuzu-9705f651b25ad622dfefd5c19ca147b93068cf47.tar.bz2
yuzu-9705f651b25ad622dfefd5c19ca147b93068cf47.tar.lz
yuzu-9705f651b25ad622dfefd5c19ca147b93068cf47.tar.xz
yuzu-9705f651b25ad622dfefd5c19ca147b93068cf47.tar.zst
yuzu-9705f651b25ad622dfefd5c19ca147b93068cf47.zip
-rw-r--r--src/core/hle/kernel/address_arbiter.cpp6
-rw-r--r--src/core/hle/kernel/address_arbiter.h3
2 files changed, 0 insertions, 9 deletions
diff --git a/src/core/hle/kernel/address_arbiter.cpp b/src/core/hle/kernel/address_arbiter.cpp
index b882eaa0f..048acd30e 100644
--- a/src/core/hle/kernel/address_arbiter.cpp
+++ b/src/core/hle/kernel/address_arbiter.cpp
@@ -275,12 +275,6 @@ ResultCode AddressArbiter::WaitForAddressIfEqual(VAddr address, s32 value, s64 t
return current_thread->GetSignalingResult();
}
-void AddressArbiter::HandleWakeupThread(std::shared_ptr<Thread> thread) {
- ASSERT(thread->GetStatus() == ThreadStatus::WaitArb);
- RemoveThread(thread);
- thread->SetArbiterWaitAddress(0);
-}
-
void AddressArbiter::InsertThread(std::shared_ptr<Thread> thread) {
const VAddr arb_addr = thread->GetArbiterWaitAddress();
std::list<std::shared_ptr<Thread>>& thread_list = arb_threads[arb_addr];
diff --git a/src/core/hle/kernel/address_arbiter.h b/src/core/hle/kernel/address_arbiter.h
index 0b05d533c..b91edc67d 100644
--- a/src/core/hle/kernel/address_arbiter.h
+++ b/src/core/hle/kernel/address_arbiter.h
@@ -50,9 +50,6 @@ public:
/// Waits on an address with a particular arbitration type.
ResultCode WaitForAddress(VAddr address, ArbitrationType type, s32 value, s64 timeout_ns);
- /// Removes a thread from the container and resets its address arbiter adress to 0
- void HandleWakeupThread(std::shared_ptr<Thread> thread);
-
private:
/// Signals an address being waited on.
ResultCode SignalToAddressOnly(VAddr address, s32 num_to_wake);