[sgen] Clean up thread pool on shutdown.
authorVincent Povirk <vincent@codeweavers.com>
Thu, 16 Apr 2015 20:57:22 +0000 (15:57 -0500)
committerVincent Povirk <vincent@codeweavers.com>
Mon, 4 Jan 2016 17:01:29 +0000 (11:01 -0600)
commitd34b34c449c9031a3cd3854a072266a1f769276a
treebe532a898d7e6ecb9098fe7f3dee5e03b610384f
parentd580f33ae28935fcef688cadc3fec80beaa18c20
[sgen] Clean up thread pool on shutdown.

Keeping threads around can cause processes to keep running when they
shouldn't, particularly on Windows when the entry point returns.

This commit licensed as MIT/X11.
mono/metadata/sgen-mono.c
mono/sgen/sgen-thread-pool.c
mono/sgen/sgen-thread-pool.h