#include <mono/utils/mono-threads.h>
#include <mono/utils/mono-lazy-init.h>
#include <mono/utils/mono-logger-internals.h>
+#include <mono/utils/w32api.h>
typedef struct {
gboolean (*init) (gint wakeup_pipe_fd);
}
}
-static void
+static gsize WINAPI
selector_thread (gpointer data)
{
MonoError error;
if (mono_runtime_is_shutting_down ()) {
io_selector_running = FALSE;
- return;
+ return 0;
}
states = mono_g_hash_table_new_type (g_direct_hash, g_direct_equal, MONO_HASH_VALUE_GC, MONO_ROOT_SOURCE_THREAD_POOL, "i/o thread pool states table");
mono_g_hash_table_destroy (states);
io_selector_running = FALSE;
+
+ return 0;
}
/* Locking: threadpool_io->updates_lock must be held */