[threads] Inline thread_cleanup into mono_thread_detach_internal (#4119)
[mono.git] / mono / metadata / threadpool-ms-io.h
index a39d8cadc7ad63f8878f747912954fcaeb23ed0a..106be80a1daee33b08524758538d6021b2c4df29 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _MONO_THREADPOOL_IO_MS_H_
-#define _MONO_THREADPOOL_IO_MS_H_
+#ifndef _MONO_THREADPOOL_MS_IO_H_
+#define _MONO_THREADPOOL_MS_IO_H_
 
 #include <config.h>
 #include <glib.h>
@@ -7,13 +7,14 @@
 #include <mono/metadata/object-internals.h>
 #include <mono/metadata/socket-io.h>
 
-typedef struct _MonoSocketRuntimeWorkItem MonoSocketRuntimeWorkItem;
+typedef struct _MonoIOSelectorJob MonoIOSelectorJob;
 
-gboolean
-mono_threadpool_ms_is_io (MonoObject *target, MonoObject *state);
+void
+ves_icall_System_IOSelector_Add (gpointer handle, MonoIOSelectorJob *job);
+
+void
+ves_icall_System_IOSelector_Remove (gpointer handle);
 
-MonoAsyncResult *
-mono_threadpool_ms_io_add (MonoAsyncResult *ares, MonoSocketAsyncResult *sockares);
 void
 mono_threadpool_ms_io_remove_socket (int fd);
 void
@@ -21,10 +22,4 @@ mono_threadpool_ms_io_remove_domain_jobs (MonoDomain *domain);
 void
 mono_threadpool_ms_io_cleanup (void);
 
-void
-mono_threadpool_io_enqueue_socket_async_result (MonoDomain *domain, MonoSocketAsyncResult *sockares);
-
-void
-ves_icall_System_Net_Sockets_MonoSocketRuntimeWorkItem_ExecuteWorkItem (MonoSocketRuntimeWorkItem *rwi);
-
-#endif /* _MONO_THREADPOOL_IO_MS_H_ */
\ No newline at end of file
+#endif /* _MONO_THREADPOOL_MS_IO_H_ */