mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-18 19:23:56 +00:00
Prepare mutant support
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user