Compilation fix

This commit is contained in:
Nekotekina 2014-12-25 23:30:34 +03:00
parent 7613d749ec
commit c305949435
2 changed files with 10 additions and 3 deletions

View File

@ -302,3 +302,8 @@ void waiter_map_t::notify(u64 signal_id)
} }
} }
} }
bool squeue_test_exit(const volatile bool* do_exit)
{
return Emu.IsStopped() || (do_exit && *do_exit);
}

View File

@ -148,6 +148,8 @@ public:
void notify(u64 signal_id); void notify(u64 signal_id);
}; };
bool squeue_test_exit(const volatile bool* do_exit);
template<typename T, u32 sq_size = 256> template<typename T, u32 sq_size = 256>
class squeue_t class squeue_t
{ {
@ -207,7 +209,7 @@ public:
return true; return true;
})) }))
{ {
if (Emu.IsStopped() || (do_exit && *do_exit)) if (squeue_test_exit(do_exit))
{ {
return false; return false;
} }
@ -258,7 +260,7 @@ public:
return true; return true;
})) }))
{ {
if (Emu.IsStopped() || (do_exit && *do_exit)) if (squeue_test_exit(do_exit))
{ {
return false; return false;
} }
@ -341,7 +343,7 @@ public:
return true; return true;
})) }))
{ {
if (Emu.IsStopped() || (do_exit && *do_exit)) if (squeue_test_exit(do_exit))
{ {
return false; return false;
} }