From 3e6afeb5134fc699158e8c4d1646a138a947a93d Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 21 Jun 2018 23:05:42 -0300 Subject: Fix some thread sync issues (#172) * Fix some thread sync issues * Remove some debug stuff * Ensure that writes to the mutex address clears the exclusive monitor --- ChocolArm64/AThread.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ChocolArm64/AThread.cs') diff --git a/ChocolArm64/AThread.cs b/ChocolArm64/AThread.cs index 040f590e..4fc79d5e 100644 --- a/ChocolArm64/AThread.cs +++ b/ChocolArm64/AThread.cs @@ -46,7 +46,7 @@ namespace ChocolArm64 { Translator.ExecuteSubroutine(this, EntryPoint); - Memory.RemoveMonitor(ThreadId); + Memory.RemoveMonitor(ThreadState); WorkFinished?.Invoke(this, EventArgs.Empty); }); -- cgit v1.2.3