Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Henry <ludovic@xamarin.com>2016-10-28 16:10:23 +0300
committerLudovic Henry <ludovic@xamarin.com>2016-11-08 20:04:35 +0300
commitc606270c9bdd7c7f768c0afc64bf31d31d1e72c9 (patch)
tree3a76a426d35dd5f8b1a2f55c3bb2c9850a974d0e
parentace3b63d26707ccff5d48a7451fb9be41d9e2531 (diff)
[threads] Fix suspend on watchos
Because certain platform (such as WatchOS) do not support syscall abort, we need to ensure that it is supported before we call the `mono_threads_suspend_abort_syscall` function.
-rw-r--r--mono/utils/mono-threads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/utils/mono-threads.c b/mono/utils/mono-threads.c
index d0eedf683e9..a33bbf1d019 100644
--- a/mono/utils/mono-threads.c
+++ b/mono/utils/mono-threads.c
@@ -916,7 +916,7 @@ suspend_sync (MonoNativeThreadId tid, gboolean interrupt_kernel)
}
break;
case AsyncSuspendBlocking:
- if (interrupt_kernel)
+ if (interrupt_kernel && mono_threads_suspend_needs_abort_syscall ())
mono_threads_suspend_abort_syscall (info);
break;