Prepare mutant support

This commit is contained in:
momo5502
2024-12-22 15:31:33 +01:00
parent 48277cac3a
commit 4be39b1fe7
4 changed files with 105 additions and 2 deletions

View File

@@ -539,6 +539,23 @@ namespace
break;
}
case handle_types::mutant:
{
auto* e = c.mutants.get(h);
if (e)
{
if (e->locked)
{
return false;
}
e->locked = true;
return true;
}
break;
}
case handle_types::thread:
{
const auto* t = c.threads.get(h);