diff options
author | Scott Mosier <smosier@microsoft.com> | 2015-10-14 19:59:44 +0300 |
---|---|---|
committer | Scott Mosier <smosier@microsoft.com> | 2015-10-14 20:50:33 +0300 |
commit | 015b60a6ae813714a6dc576c36df4637880ab897 (patch) | |
tree | 76a3288dffb3ae226b9b2fd77747816f214f65f2 /src/Native/Runtime/Crst.cpp | |
parent | 9ceafad81f9c68f16c6be2e11ff609ce9f228ae9 (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.cpp | 5 |
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 |