X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fthreadpool.c;h=c1f0c1a12a9f233f0dc41f902b60d7d2c6570abf;hb=82bcac8efac8c2556cf748b062592a4fdc2ecc3e;hp=e58a78d47e0e37e9669762067b68316268d9caf5;hpb=6df483ca4345faf066e377dd3cbdde31ce66e55d;p=mono.git diff --git a/mono/metadata/threadpool.c b/mono/metadata/threadpool.c index e58a78d47e0..c1f0c1a12a9 100644 --- a/mono/metadata/threadpool.c +++ b/mono/metadata/threadpool.c @@ -422,6 +422,9 @@ worker_callback (gpointer unused) domains_unlock (); + mono_thread_set_name_internal (thread, mono_string_new (mono_get_root_domain (), "Threadpool worker"), FALSE, TRUE, &error); + mono_error_assert_ok (&error); + mono_thread_clr_state (thread, (MonoThreadState)~ThreadState_Background); if (!mono_thread_test_state (thread , ThreadState_Background)) ves_icall_System_Threading_Thread_SetState (thread, ThreadState_Background);