diff options
author | Marek Safar <marek.safar@gmail.com> | 2019-02-05 04:43:10 +0100 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-02-04 19:43:10 -0800 |
commit | 382dbe4ba82f57a138484e0c5052c3b8606c1294 (patch) | |
tree | 4e220d0a0e3198678829836df034e8039e1697a2 /src/vm/synchronizationcontextnative.cpp | |
parent | 7e20b6fa7b2253511b6f0a7d76c955360e040df6 (diff) | |
download | coreclr-382dbe4ba82f57a138484e0c5052c3b8606c1294.tar.gz coreclr-382dbe4ba82f57a138484e0c5052c3b8606c1294.tar.bz2 coreclr-382dbe4ba82f57a138484e0c5052c3b8606c1294.zip |
Move SynchronizationContext to shared partition (#22389)
* Move SynchronizationContext to shared partition
* Move WaitHelperNative to WaitHandle
Diffstat (limited to 'src/vm/synchronizationcontextnative.cpp')
-rw-r--r-- | src/vm/synchronizationcontextnative.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/vm/synchronizationcontextnative.cpp b/src/vm/synchronizationcontextnative.cpp index 03b289fc95..654f69e3ab 100644 --- a/src/vm/synchronizationcontextnative.cpp +++ b/src/vm/synchronizationcontextnative.cpp @@ -18,37 +18,8 @@ #include <roapi.h> #include <windows.ui.core.h> #include "winrtdispatcherqueue.h" -#endif #include "synchronizationcontextnative.h" - -FCIMPL3(DWORD, SynchronizationContextNative::WaitHelper, PTRArray *handleArrayUNSAFE, CLR_BOOL waitAll, DWORD millis) -{ - FCALL_CONTRACT; - - DWORD ret = 0; - - PTRARRAYREF handleArrayObj = (PTRARRAYREF) handleArrayUNSAFE; - HELPER_METHOD_FRAME_BEGIN_RET_1(handleArrayObj); - - CQuickArray<HANDLE> qbHandles; - int cHandles = handleArrayObj->GetNumComponents(); - - // Since DoAppropriateWait could cause a GC, we need to copy the handles to an unmanaged block - // of memory to ensure they aren't relocated during the call to DoAppropriateWait. - qbHandles.AllocThrows(cHandles); - memcpy(qbHandles.Ptr(), handleArrayObj->GetDataPtr(), cHandles * sizeof(HANDLE)); - - Thread * pThread = GetThread(); - ret = pThread->DoAppropriateWait(cHandles, qbHandles.Ptr(), waitAll, millis, - (WaitMode)(WaitMode_Alertable | WaitMode_IgnoreSyncCtx)); - - HELPER_METHOD_FRAME_END(); - return ret; -} -FCIMPLEND -#ifdef FEATURE_APPX - Volatile<ABI::Windows::UI::Core::ICoreWindowStatic*> g_pICoreWindowStatic; void* QCALLTYPE SynchronizationContextNative::GetWinRTDispatcherForCurrentThread() |