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…
Reference in New Issue