aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/AThread.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-04-19 16:18:30 -0300
committergdkchan <gab.dark.100@gmail.com>2018-04-19 16:18:30 -0300
commit03002f6537e3208e6951bc9092e958985e200c7d (patch)
treee3e4eea4eba155d82168915ad7c3a507e3a20f59 /ChocolArm64/AThread.cs
parent33ae6e544bd477da629e3f4ab4925f457ecfbbb7 (diff)
Add SvcSetThreadActivity, tweak SignalProcessWideKey, add fmul32i shader instructions and other small fixes
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