X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Futils%2Fmono-threads.c;h=d0c7fa1040ed7ecd39e64967b395e2d85c1ac076;hb=f6b8e1f10d5cd18826aad50e5a2b8d2aabf3222a;hp=d0eedf683e9d4b4931c83ddec4d8a71d5eefd79c;hpb=8576b11c77f6aa3b683c9676765abd93ac109908;p=mono.git diff --git a/mono/utils/mono-threads.c b/mono/utils/mono-threads.c index d0eedf683e9..d0c7fa1040e 100644 --- a/mono/utils/mono-threads.c +++ b/mono/utils/mono-threads.c @@ -1149,7 +1149,6 @@ inner_start_thread (gpointer data) MonoThreadStart start_routine; gpointer start_routine_arg; guint32 start_routine_res; - gint32 priority; gsize dummy; thread_data = (CreateThreadData*) data; @@ -1158,13 +1157,9 @@ inner_start_thread (gpointer data) start_routine = thread_data->start_routine; start_routine_arg = thread_data->start_routine_arg; - priority = thread_data->priority; - info = mono_thread_info_attach (&dummy); info->runtime_thread = TRUE; - mono_threads_platform_set_priority (info, priority); - thread_data->handle = mono_thread_info_duplicate_handle (info); mono_coop_sem_post (&thread_data->registered); @@ -1192,7 +1187,7 @@ inner_start_thread (gpointer data) * Returns: a windows or io-layer handle for the thread. */ HANDLE -mono_threads_create_thread (MonoThreadStart start, gpointer arg, MonoThreadParm *tp, MonoNativeThreadId *out_tid) +mono_threads_create_thread (MonoThreadStart start, gpointer arg, gsize stack_size, MonoNativeThreadId *out_tid) { CreateThreadData *thread_data; gint res; @@ -1202,10 +1197,9 @@ mono_threads_create_thread (MonoThreadStart start, gpointer arg, MonoThreadParm thread_data->ref = 2; thread_data->start_routine = start; thread_data->start_routine_arg = arg; - thread_data->priority = tp->priority; mono_coop_sem_init (&thread_data->registered, 0); - res = mono_threads_platform_create_thread (inner_start_thread, (gpointer) thread_data, tp->stack_size, out_tid); + res = mono_threads_platform_create_thread (inner_start_thread, (gpointer) thread_data, stack_size, out_tid); if (res != 0) { /* ref is not going to be decremented in inner_start_thread */ InterlockedDecrement (&thread_data->ref); @@ -1668,12 +1662,6 @@ mono_thread_info_duplicate_handle (MonoThreadInfo *info) return mono_threads_platform_duplicate_handle (info); } -void -mono_thread_info_describe (MonoThreadInfo *info, GString *text) -{ - mono_threads_platform_describe (info, text); -} - void mono_thread_info_own_mutex (MonoThreadInfo *info, gpointer mutex_handle) { @@ -1685,15 +1673,3 @@ mono_thread_info_disown_mutex (MonoThreadInfo *info, gpointer mutex_handle) { mono_threads_platform_disown_mutex (info, mutex_handle); } - -MonoThreadPriority -mono_thread_info_get_priority (MonoThreadInfo *info) -{ - return mono_threads_platform_get_priority (info); -} - -void -mono_thread_info_set_priority (MonoThreadInfo *info, MonoThreadPriority priority) -{ - mono_threads_platform_set_priority (info, priority); -}