[threadpool] Fix overflow of max number of worker threads
authorLudovic Henry <ludovic@xamarin.com>
Mon, 14 Dec 2015 10:29:45 +0000 (10:29 +0000)
committerLudovic Henry <ludovic@xamarin.com>
Mon, 14 Dec 2015 17:09:08 +0000 (17:09 +0000)
commit3513df730521b57c57e022d925435992ffee7ef5
tree78f256394ad106a5c45387ca3c7f16305d33d3cc
parent9900f812e2fc72b1e9389c4e7a0602007f256718
[threadpool] Fix overflow of max number of worker threads

In case all threads would wait on a Sleep or a Wait, the monitor thread would simply increase the number of max working thread, up to the point it would overflow the number of max worker threads.
mono/metadata/threadpool-ms.c