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/PalRedhawk.h
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/PalRedhawk.h')
-rw-r--r--src/Native/Runtime/PalRedhawk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Native/Runtime/PalRedhawk.h b/src/Native/Runtime/PalRedhawk.h
index 45acf0293..db1070e4d 100644
--- a/src/Native/Runtime/PalRedhawk.h
+++ b/src/Native/Runtime/PalRedhawk.h
@@ -801,6 +801,8 @@ REDHAWK_PALIMPORT UInt32 REDHAWK_PALAPI PalCompatibleWaitAny(UInt32_BOOL alertab
REDHAWK_PALIMPORT void REDHAWK_PALAPI PalAttachThread(void* thread);
REDHAWK_PALIMPORT bool REDHAWK_PALAPI PalDetachThread(void* thread);
+REDHAWK_PALIMPORT UInt64 PalGetCurrentThreadIdForLogging();
+
#ifdef PLATFORM_UNIX
REDHAWK_PALIMPORT Int32 __cdecl _stricmp(const char *string1, const char *string2);
#endif // PLATFORM_UNIX