Remove vm::cleanup_unlock
This commit is contained in:
@@ -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
|
void temporary_unlock(cpu_thread& cpu) noexcept
|
||||||
{
|
{
|
||||||
if (!(cpu.state & cpu_flag::wait)) cpu.state += cpu_flag::wait;
|
if (!(cpu.state & cpu_flag::wait)) cpu.state += cpu_flag::wait;
|
||||||
|
|||||||
@@ -106,9 +106,6 @@ namespace vm
|
|||||||
// Unregister reader
|
// Unregister reader
|
||||||
void passive_unlock(cpu_thread& cpu);
|
void passive_unlock(cpu_thread& cpu);
|
||||||
|
|
||||||
// Unregister reader (foreign thread)
|
|
||||||
void cleanup_unlock(cpu_thread& cpu) noexcept;
|
|
||||||
|
|
||||||
// Optimization (set cpu_flag::memory)
|
// Optimization (set cpu_flag::memory)
|
||||||
void temporary_unlock(cpu_thread& cpu) noexcept;
|
void temporary_unlock(cpu_thread& cpu) noexcept;
|
||||||
void temporary_unlock() noexcept;
|
void temporary_unlock() noexcept;
|
||||||
|
|||||||
Reference in New Issue
Block a user