aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/AThread.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ChocolArm64/AThread.cs')
-rw-r--r--ChocolArm64/AThread.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/ChocolArm64/AThread.cs b/ChocolArm64/AThread.cs
index 62f9d2d3..16804a7c 100644
--- a/ChocolArm64/AThread.cs
+++ b/ChocolArm64/AThread.cs
@@ -54,6 +54,14 @@ namespace ChocolArm64
return true;
}
- public void StopExecution() => ThreadState.Running = false;
+ public void StopExecution()
+ {
+ ThreadState.Running = false;
+ }
+
+ public bool IsCurrentThread()
+ {
+ return Thread.CurrentThread == Work;
+ }
}
} \ No newline at end of file