Remove vm::cleanup_unlock

This commit is contained in:
Eladash 2021-02-22 11:36:52 +02:00 committed by Ivan
parent 96400234a8
commit 73d45f3bf0
2 changed files with 0 additions and 15 deletions

View File

@ -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;

View File

@ -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;