From 73d45f3bf0cbde4b1d2547b34960598f04083086 Mon Sep 17 00:00:00 2001 From: Eladash Date: Mon, 22 Feb 2021 11:36:52 +0200 Subject: [PATCH] Remove vm::cleanup_unlock --- rpcs3/Emu/Memory/vm.cpp | 12 ------------ rpcs3/Emu/Memory/vm_locking.h | 3 --- 2 files changed, 15 deletions(-) diff --git a/rpcs3/Emu/Memory/vm.cpp b/rpcs3/Emu/Memory/vm.cpp index 891ffb069a..76a0cf3079 100644 --- a/rpcs3/Emu/Memory/vm.cpp +++ b/rpcs3/Emu/Memory/vm.cpp @@ -379,18 +379,6 @@ namespace vm } } - void cleanup_unlock(cpu_thread& cpu) noexcept - { - for (u32 i = 0, max = g_cfg.core.ppu_threads; i < max; i++) - { - if (g_locks[i] == &cpu) - { - g_locks[i].compare_and_swap_test(&cpu, nullptr); - return; - } - } - } - void temporary_unlock(cpu_thread& cpu) noexcept { if (!(cpu.state & cpu_flag::wait)) cpu.state += cpu_flag::wait; diff --git a/rpcs3/Emu/Memory/vm_locking.h b/rpcs3/Emu/Memory/vm_locking.h index 98daa7ebb5..70b54af394 100644 --- a/rpcs3/Emu/Memory/vm_locking.h +++ b/rpcs3/Emu/Memory/vm_locking.h @@ -106,9 +106,6 @@ namespace vm // Unregister reader void passive_unlock(cpu_thread& cpu); - // Unregister reader (foreign thread) - void cleanup_unlock(cpu_thread& cpu) noexcept; - // Optimization (set cpu_flag::memory) void temporary_unlock(cpu_thread& cpu) noexcept; void temporary_unlock() noexcept;