Fixes threadpool+ProcessExit problem
authorShay Rojansky <roji@roji.org>
Sun, 18 Nov 2012 20:08:13 +0000 (22:08 +0200)
committerShay Rojansky <roji@roji.org>
Sun, 18 Nov 2012 20:14:00 +0000 (22:14 +0200)
commit850f2f412499e8f47db7e72bfa80135f9661efff
treed0288bb6d2ce22b4b7bbec6985e8bc3afe69974e
parenta2e54923bbd578e3fc8bdd95188b017648120de7
Fixes threadpool+ProcessExit problem

The threadpool was being shutdown too early, before the ProcessExit event was fired.
This led to bugs such as NLog not shutting down
(http://nlog-project.org/2011/10/30/using-nlog-with-mono.html).
mono/metadata/icall.c
mono/metadata/threads.c
mono/mini/mini.c