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:
authorJan Vorlicek <janvorli@microsoft.com>2016-03-10 15:12:46 +0300
committerJan Vorlicek <janvorli@microsoft.com>2016-03-10 17:02:12 +0300
commit9a04f2c1ccf5f7ce664e1ad21998d125f57901aa (patch)
treeb52b2f668c906da1fed4016ce47bec16a7bb4119 /src/Native/Runtime/threadstore.cpp
parentb1785bebfa5317b4145b5d54ffe3b0b372ad3eaa (diff)
Replace numeric thread id by an opaque one
This change replaces usages of the uint thread id by EEThreadId at places where we use it for thread matching. It also adds new PAL function GetPalThreadIdForLogging that returns a numeric thread id for logging purposes if the target platform supports it. The reason for this change is that in pthreads, thread id is an opaque struct and numeric id existence is platform specific.
Diffstat (limited to 'src/Native/Runtime/threadstore.cpp')
-rw-r--r--src/Native/Runtime/threadstore.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Native/Runtime/threadstore.cpp b/src/Native/Runtime/threadstore.cpp
index a1b639206..31bbf61ed 100644
--- a/src/Native/Runtime/threadstore.cpp
+++ b/src/Native/Runtime/threadstore.cpp
@@ -317,9 +317,11 @@ DECLSPEC_THREAD ThreadBuffer tls_CurrentThread =
INVALID_HANDLE_VALUE, // m_hPalThread
0, // m_ppvHijackedReturnAddressLocation
0, // m_pvHijackedReturnAddress
+ 0, // m_pExInfoStackHead
0, // m_pStackLow
0, // m_pStackHigh
- 0, // m_uPalThreadId
+ 0, // m_pTEB
+ 0, // m_uPalThreadIdForLogging
};
#ifdef CORERT