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:
authorAnton Lapounov <anton.lapounov@microsoft.com>2017-03-15 00:58:29 +0300
committerGitHub <noreply@github.com>2017-03-15 00:58:29 +0300
commit71f7b3bf0c5ac62c4bf7aa3eb6562ff2d4fd3443 (patch)
tree10955d3b1740211585a2204caa2b5038738fc53e /src/Native/Runtime/PalRedhawkCommon.h
parent1673871e15e5948125effd5fea631f198f752735 (diff)
Implement Thread for Unix (#2957)
Implement Thread for Unix: * Use a callback from PalDetachThread to signal the thread as stopped. * In BasicThreading test account that SafeHandle postpones disposing until the next garbage collection. * Move reusable code from RuntimeThread.Windows.cs to RuntimeThread.cs. * Rename *Core functions to *Internal to be close to CoreCLR implementation. * Priority is ignored for now. Fixes for Windows: * Merge HasFinishedExecution and JoinInternal. * Handle race condition between JoinInternal and SafeWaitHandle finalizer: SafeWaitHandle.DangerousAddRef may throw an ObjectDisposedException. * Handle Interop.mincore.CreateThread returning the NULL handle.
Diffstat (limited to 'src/Native/Runtime/PalRedhawkCommon.h')
-rw-r--r--src/Native/Runtime/PalRedhawkCommon.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Native/Runtime/PalRedhawkCommon.h b/src/Native/Runtime/PalRedhawkCommon.h
index 36f28e856..882e525af 100644
--- a/src/Native/Runtime/PalRedhawkCommon.h
+++ b/src/Native/Runtime/PalRedhawkCommon.h
@@ -123,6 +123,10 @@ struct PAL_LIMITED_CONTEXT
void RuntimeThreadShutdown(void* thread);
#ifdef PLATFORM_UNIX
+typedef void (__fastcall * ThreadExitCallback)();
+
+extern ThreadExitCallback g_threadExitCallback;
+
typedef Int32 (*PHARDWARE_EXCEPTION_HANDLER)(UIntNative faultCode, UIntNative faultAddress, PAL_LIMITED_CONTEXT* palContext, UIntNative* arg0Reg, UIntNative* arg1Reg);
#endif