X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fattach.c;h=b14709aeabc85b89e7e42f4e39c9b2c6a0d01a89;hb=d6cdd9715eff6eeac53c9d0970a90e49b7c80edd;hp=dd3900ce393a5f3e238eae3a7f0893c859f5704b;hpb=14b11f1ecf8c72ac8cc0dc515fee2c34d6ae5e76;p=mono.git diff --git a/mono/metadata/attach.c b/mono/metadata/attach.c index dd3900ce393..b14709aeabc 100644 --- a/mono/metadata/attach.c +++ b/mono/metadata/attach.c @@ -4,13 +4,13 @@ * Author: * Zoltan Varga (vargaz@gmail.com) * - * (C) 2007-2008 Novell, Inc. + * Copyright 2007-2009 Novell, Inc (http://www.novell.com) */ #include #include -#ifdef PLATFORM_WIN32 +#ifdef HOST_WIN32 #define DISABLE_ATTACH #endif #ifndef DISABLE_ATTACH @@ -480,7 +480,7 @@ transport_start_receive (void) if (!listen_fd) return; - receiver_thread_handle = CreateThread (NULL, 0, receiver_thread, NULL, 0, &tid); + receiver_thread_handle = mono_create_thread (NULL, 0, receiver_thread, NULL, 0, &tid); g_assert (receiver_thread_handle); } @@ -506,7 +506,7 @@ receiver_thread (void *arg) /* Ask the runtime to not abort this thread */ //mono_thread_current ()->flags |= MONO_THREAD_FLAG_DONT_MANAGE; /* Ask the runtime to not wait for this thread */ - mono_thread_current ()->state |= ThreadState_Background; + mono_thread_internal_current ()->state |= ThreadState_Background; while (TRUE) { char *cmd, *agent_name, *agent_args;