#include <mono/metadata/domain-internals.h>
#include <mono/metadata/gc-internal.h>
#include <mono/metadata/metadata.h>
-#include <mono/metadata/threadpool.h>
+#include <mono/metadata/threadpool-ms.h>
#include <mono/utils/mono-signal-handler.h>
#include <mono/utils/mono-proclib.h>
static void
tty_teardown (void)
{
- int unused;
+ int unused G_GNUC_UNUSED;
if (!setup_finished)
return;
MonoClass *klass;
MonoDelegate *load_value;
MonoMethod *method;
- MonoMethodMessage *msg;
- MonoMethod *im;
MonoVTable *vtable;
/* FIXME: this should likely iterate all the domains, instead */
klass = load_value->object.vtable->klass;
method = mono_class_get_method_from_name (klass, "BeginInvoke", -1);
g_assert (method != NULL);
- im = mono_get_delegate_invoke (method->klass);
- msg = mono_method_call_message_new (method, NULL, im, NULL, NULL);
- mono_thread_pool_add ((MonoObject *) load_value, msg, NULL, NULL);
+
+ mono_threadpool_ms_begin_invoke (domain, (MonoObject*) load_value, method, NULL);
}
static int need_cancel = FALSE;
MONO_SIG_HANDLER_FUNC (static, sigcont_handler)
{
- int unused;
+ int unused G_GNUC_UNUSED;
// Ignore error, there is not much we can do in the sigcont handler.
tcsetattr (STDIN_FILENO, TCSANOW, &mono_attr);
static void
console_set_signal_handlers ()
{
+#if defined(HAVE_SIGACTION)
struct sigaction sigcont, sigint, sigwinch;
memset (&sigcont, 0, sizeof (struct sigaction));
sigwinch.sa_flags = 0;
sigemptyset (&sigwinch.sa_mask);
sigaction (SIGWINCH, &sigwinch, &save_sigwinch);
+#endif
}
#if currently_unuused