diff options
Diffstat (limited to 'ChocolArm64/AThread.cs')
| -rw-r--r-- | ChocolArm64/AThread.cs | 10 |
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 |
