diff --git a/AThread.cs b/AThread.cs index 62f9d2d..16804a7 100644 --- a/AThread.cs +++ b/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