[threadpool] Fix hang on threadpool cleanup (#4331)
commit4f4cb919cf796437bb4be05df4dac5cd2f4e6ee5
authorLudovic Henry <ludovic@xamarin.com>
Tue, 7 Feb 2017 20:13:12 +0000 (7 15:13 -0500)
committerGitHub <noreply@github.com>
Tue, 7 Feb 2017 20:13:12 +0000 (7 15:13 -0500)
treea545c3407d155d029883cd98f2641d4042b28c29
parent42a5eeb95a4e95d2784b3b6c84626a93ff9e710c
[threadpool] Fix hang on threadpool cleanup (#4331)

Waiting for the threadpool threads to exit on shutdown triggers a hand. The simplest solution is to not wait for them, and let the general runtime shutdown mechanism wait for them (see `mono_thread_manage`).
mono/metadata/threadpool-worker-default.c
mono/metadata/threadpool.c