提交 3779a70d 编写于 作者: G Gonzalo Paniagua Javier

[ThreadPool] Clear the thread state

	Clear the thread state after finishing a work item. We were only
	resetting the background state.
上级 160cf6a2
......@@ -1879,6 +1879,7 @@ async_invoke_thread (gpointer data)
mono_thread_pop_appdomain_ref ();
InterlockedDecrement (&tp->busy_threads);
/* If the callee changes the background status, set it back to TRUE */
mono_thread_clr_state (thread , ~ThreadState_Background);
if (!mono_thread_test_state (thread , ThreadState_Background))
ves_icall_System_Threading_Thread_SetState (thread, ThreadState_Background);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册