summaryrefslogtreecommitdiff
path: root/src/vm/threadsuspend.h
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2015-09-17 23:16:13 +0200
committerJan Vorlicek <janvorli@microsoft.com>2015-09-18 03:25:32 +0200
commitf65f17708609ab554ed106822bf6d27dd658b712 (patch)
treea2783287784b314fb2e07ad0e282abd813999658 /src/vm/threadsuspend.h
parentd176041723f366c35fd71ee4b176253fefddfee1 (diff)
downloadcoreclr-f65f17708609ab554ed106822bf6d27dd658b712.tar.gz
coreclr-f65f17708609ab554ed106822bf6d27dd658b712.tar.bz2
coreclr-f65f17708609ab554ed106822bf6d27dd658b712.zip
Change PAL_InjectActivation to use pthread_kill
This change modifies the PAL_InjectActivation to use much more portable pthread_kill instead of pthread_sigqueue. Remove the activation function passing from the PAL_InjectActivation and add a PAL API to set the activation function globally, since we need just one.
Diffstat (limited to 'src/vm/threadsuspend.h')
-rw-r--r--src/vm/threadsuspend.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vm/threadsuspend.h b/src/vm/threadsuspend.h
index 73f2b8b803..df88629ad2 100644
--- a/src/vm/threadsuspend.h
+++ b/src/vm/threadsuspend.h
@@ -197,6 +197,9 @@ public:
static HRESULT SuspendRuntime(ThreadSuspend::SUSPEND_REASON reason);
static void ResumeRuntime(BOOL bFinishedGC, BOOL SuspendSucceded);
+ // Initialize thread suspension support
+ static void Initialize();
+
private:
static CLREvent * g_pGCSuspendEvent;