Threadpool appdomain unload cleanup (#3996)
authorZoltan Varga <vargaz@gmail.com>
Mon, 21 Nov 2016 21:59:02 +0000 (16:59 -0500)
committerGitHub <noreply@github.com>
Mon, 21 Nov 2016 21:59:02 +0000 (16:59 -0500)
commite83953d02ce7da43fabad5f8be3cabab7ebd6258
treec179ec195324f9692c846e82019ec60f4b92250d
parentead96e0c2c93a7538d255d41f991d509d235ec5d
Threadpool appdomain unload cleanup (#3996)

* [runtime] Move the threadpool related data from MonoDomain to ThreadPoolDomain.

* [runtime] Simplify the waiting for tp threads in the domain unload code. Use a condvar to wait for the active+outstanding number of jobs to reach 0.
mono/metadata/domain-internals.h
mono/metadata/threadpool-ms.c