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

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Mosier <smosier@microsoft.com>2015-10-14 19:59:44 +0300
committerScott Mosier <smosier@microsoft.com>2015-10-14 20:50:33 +0300
commit015b60a6ae813714a6dc576c36df4637880ab897 (patch)
tree76a3288dffb3ae226b9b2fd77747816f214f65f2 /src/Native/Runtime/Crst.cpp
parent9ceafad81f9c68f16c6be2e11ff609ce9f228ae9 (diff)
Additional GC-to-EE hookup.
Provide specialized gcenv.h for CoreRT. Some refactoring of related gcenv stuff. Wire up finalizer code. Add runtime-specific scanning code.
Diffstat (limited to 'src/Native/Runtime/Crst.cpp')
-rw-r--r--src/Native/Runtime/Crst.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Native/Runtime/Crst.cpp b/src/Native/Runtime/Crst.cpp
index 220e9eea3..e2af2652e 100644
--- a/src/Native/Runtime/Crst.cpp
+++ b/src/Native/Runtime/Crst.cpp
@@ -16,6 +16,11 @@
#include "crst.h"
#endif // !DACCESS_COMPILE
+bool EEThreadId::IsSameThread()
+{
+ return PalGetCurrentThreadId() == m_uiId;
+}
+
void CrstStatic::Init(CrstType eType, CrstFlags eFlags)
{
#ifndef DACCESS_COMPILE