mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
ThreadBase rewritten (wip)
This commit is contained in:
parent
b7a320fbbd
commit
3aefa2b4e1
85 changed files with 1960 additions and 2183 deletions
|
|
@ -145,13 +145,13 @@ u32 sleep_queue_t::signal(u32 protocol)
|
|||
{
|
||||
std::lock_guard<std::mutex> lock(m_mutex);
|
||||
|
||||
u64 highest_prio = ~0ull;
|
||||
s32 highest_prio = INT32_MAX;
|
||||
u64 sel = ~0ull;
|
||||
for (auto& v : m_waiting)
|
||||
{
|
||||
if (const auto t = Emu.GetCPU().GetThread(v))
|
||||
if (const auto t = Emu.GetIdManager().get<PPUThread>(v))
|
||||
{
|
||||
const u64 prio = t->GetPrio();
|
||||
const s32 prio = t->prio;
|
||||
if (prio < highest_prio)
|
||||
{
|
||||
highest_prio = prio;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue