mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-31 09:33:06 +00:00
JitRegCache: IsAllUnlocked
This commit is contained in:
parent
6c61d9a426
commit
16f8b7413d
@ -622,6 +622,13 @@ RCForkGuard RegCache::Fork()
|
||||
return RCForkGuard{*this};
|
||||
}
|
||||
|
||||
bool RegCache::IsAllUnlocked() const
|
||||
{
|
||||
return std::none_of(m_regs.begin(), m_regs.end(), [](const auto& r){ return r.IsLocked(); }) &&
|
||||
std::none_of(m_xregs.begin(), m_xregs.end(), [](const auto& x){ return x.IsLocked(); }) &&
|
||||
!IsAnyConstraintActive();
|
||||
}
|
||||
|
||||
void RegCache::NewLock(preg_t preg)
|
||||
{
|
||||
m_regs[preg].Lock();
|
||||
|
@ -239,6 +239,8 @@ public:
|
||||
|
||||
RCForkGuard Fork();
|
||||
|
||||
bool IsAllUnlocked() const;
|
||||
|
||||
protected:
|
||||
friend class RCOpArg;
|
||||
friend class RCX64Reg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user