mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-05 15:56:49 +00:00
Remove vm::cleanup_unlock
This commit is contained in:
parent
96400234a8
commit
73d45f3bf0
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user