diff options
| author | 2020-11-13 21:28:12 -0800 | |
|---|---|---|
| committer | 2020-11-29 01:31:51 -0800 | |
| commit | 9705f651b25ad622dfefd5c19ca147b93068cf47 (patch) | |
| tree | 415e74d6d4dab57cb0b14176a18c8a482bfd388d /src/core | |
| parent | hle: kernel: SynchronizationObject: Use atomic_bool for is_signaled. (diff) | |
| download | yuzu-9705f651b25ad622dfefd5c19ca147b93068cf47.tar.gz yuzu-9705f651b25ad622dfefd5c19ca147b93068cf47.tar.xz yuzu-9705f651b25ad622dfefd5c19ca147b93068cf47.zip | |
hle: kernel: AddressArbiter: Remove unused code.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/kernel/address_arbiter.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/kernel/address_arbiter.h | 3 |
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 | |||
| 275 | return current_thread->GetSignalingResult(); | 275 | return current_thread->GetSignalingResult(); |
| 276 | } | 276 | } |
| 277 | 277 | ||
| 278 | void AddressArbiter::HandleWakeupThread(std::shared_ptr<Thread> thread) { | ||
| 279 | ASSERT(thread->GetStatus() == ThreadStatus::WaitArb); | ||
| 280 | RemoveThread(thread); | ||
| 281 | thread->SetArbiterWaitAddress(0); | ||
| 282 | } | ||
| 283 | |||
| 284 | void AddressArbiter::InsertThread(std::shared_ptr<Thread> thread) { | 278 | void AddressArbiter::InsertThread(std::shared_ptr<Thread> thread) { |
| 285 | const VAddr arb_addr = thread->GetArbiterWaitAddress(); | 279 | const VAddr arb_addr = thread->GetArbiterWaitAddress(); |
| 286 | std::list<std::shared_ptr<Thread>>& thread_list = arb_threads[arb_addr]; | 280 | 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: | |||
| 50 | /// Waits on an address with a particular arbitration type. | 50 | /// Waits on an address with a particular arbitration type. |
| 51 | ResultCode WaitForAddress(VAddr address, ArbitrationType type, s32 value, s64 timeout_ns); | 51 | ResultCode WaitForAddress(VAddr address, ArbitrationType type, s32 value, s64 timeout_ns); |
| 52 | 52 | ||
| 53 | /// Removes a thread from the container and resets its address arbiter adress to 0 | ||
| 54 | void HandleWakeupThread(std::shared_ptr<Thread> thread); | ||
| 55 | |||
| 56 | private: | 53 | private: |
| 57 | /// Signals an address being waited on. | 54 | /// Signals an address being waited on. |
| 58 | ResultCode SignalToAddressOnly(VAddr address, s32 num_to_wake); | 55 | ResultCode SignalToAddressOnly(VAddr address, s32 num_to_wake); |