[threadpool] Remove RegisteredWaitHandle runtime code, as it is all in managed
authorLudovic Henry <ludovic.henry@xamarin.com>
Thu, 19 Mar 2015 15:57:26 +0000 (15:57 +0000)
committerLudovic Henry <ludovic.henry@xamarin.com>
Tue, 31 Mar 2015 16:47:59 +0000 (17:47 +0100)
mono/metadata/icall-def.h
mono/metadata/threadpool-microsoft.c
mono/metadata/threadpool-microsoft.h

index bd495a1ba02e53cfba68af20c33f1a9d1d2d42f4..9208c6179b098a27cf21ea6ab0e59730a39c6e89 100644 (file)
@@ -869,7 +869,6 @@ ICALL(MTHREADP_6, "IsThreadPoolHosted", ves_icall_System_Threading_Microsoft_Thr
 ICALL(MTHREADP_7, "NotifyWorkItemComplete", ves_icall_System_Threading_Microsoft_ThreadPool_NotifyWorkItemComplete)
 ICALL(MTHREADP_8, "NotifyWorkItemProgressNative", ves_icall_System_Threading_Microsoft_ThreadPool_NotifyWorkItemProgressNative)
 ICALL(MTHREADP_9, "PostQueuedCompletionStatus", ves_icall_System_Threading_Microsoft_ThreadPool_PostQueuedCompletionStatus)
-ICALL(MTHREADP_10, "RegisterWaitForSingleObjectNative", ves_icall_System_Threading_Microsoft_ThreadPool_RegisterWaitForSingleObjectNative)
 ICALL(MTHREADP_11, "ReportThreadStatus", ves_icall_System_Threading_Microsoft_ThreadPool_ReportThreadStatus)
 ICALL(MTHREADP_12, "RequestWorkerThread", ves_icall_System_Threading_Microsoft_ThreadPool_RequestWorkerThread)
 ICALL(MTHREADP_13, "SetMaxThreadsNative", ves_icall_System_Threading_Microsoft_ThreadPool_SetMaxThreadsNative)
index 9ca79d55826da77cf4e82ce671f8d2ffb4df5ce7..c592f4b664d5154755193d063402fcc85a9e360d 100644 (file)
@@ -82,22 +82,6 @@ struct _MonoNativeOverlapped {
        gpointer event_handle;
 };
 
-/* Keep in sync with System.Threading.RegisteredWaitHandleSafe */
-typedef struct _MonoRegisteredWaitHandleSafe MonoRegisteredWaitHandleSafe;
-struct _MonoRegisteredWaitHandleSafe {
-       MonoObject object;
-       gpointer registered_wait_handle;
-       MonoWaitHandle *internal_wait_object;
-       gboolean release_needed; // init: false
-       volatile gint32 lock; // initt: 0
-};
-
-/* Keep in sync with System.Threading.RegisteredWaitHandle */
-struct _MonoRegisteredWaitHandle {
-       MonoObject object;
-       MonoRegisteredWaitHandleSafe *internal_registered_wait;
-};
-
 /* Keep in sync with the System.MonoAsyncCall class which provides GC tracking */
 typedef struct _MonoAsyncCall MonoAsyncCall;
 struct _MonoAsyncCall {
@@ -1595,15 +1579,6 @@ ves_icall_System_Threading_Microsoft_ThreadPool_PostQueuedCompletionStatus (Mono
        return FALSE;
 }
 
-gpointer
-ves_icall_System_Threading_Microsoft_ThreadPool_RegisterWaitForSingleObjectNative (MonoWaitHandle *wait_handle, MonoObject *state, guint timeout_internal, gboolean execute_only_once,
-       MonoRegisteredWaitHandle *registered_wait_handle, gint stack_mark, gboolean compress_stack)
-{
-       // FIXME
-       mono_raise_exception (mono_get_exception_not_implemented (NULL));
-       return NULL;
-}
-
 gboolean
 ves_icall_System_Threading_Microsoft_ThreadPool_BindIOCompletionCallbackNative (gpointer file_handle)
 {
index c3030469d8dec3918ab73bde85be46d8c0e6b202..ba250c29373ea06223a32c20fdc3e9779cf56fa7 100644 (file)
@@ -4,7 +4,6 @@
 #include <glib.h>
 
 typedef struct _MonoRuntimeWorkItem MonoRuntimeWorkItem;
-typedef struct _MonoRegisteredWaitHandle MonoRegisteredWaitHandle;
 typedef struct _MonoNativeOverlapped MonoNativeOverlapped;
 
 static void
@@ -69,8 +68,6 @@ gboolean
 ves_icall_System_Threading_Microsoft_ThreadPool_RequestWorkerThread (void);
 gboolean
 ves_icall_System_Threading_Microsoft_ThreadPool_PostQueuedCompletionStatus (MonoNativeOverlapped *native_overlapped);
-gpointer
-ves_icall_System_Threading_Microsoft_ThreadPool_RegisterWaitForSingleObjectNative (MonoWaitHandle *wait_handle, MonoObject *state, guint timeout_internal, gboolean execute_only_once, MonoRegisteredWaitHandle *registered_wait_handle, gint stack_mark, gboolean compress_stack);
 gboolean
 ves_icall_System_Threading_Microsoft_ThreadPool_BindIOCompletionCallbackNative (gpointer file_handle);