[threadpool] Work around for a race-condition
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Sat, 13 Aug 2011 03:13:38 +0000 (23:13 -0400)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Sat, 13 Aug 2011 03:16:31 +0000 (23:16 -0400)
commit8adb509c633e7c1e992d31819d2d99fe5a093443
treeb4dec1af2f4de8a84c2f2f7389c6b5bda738ec0d
parent6d8fab26466c7557d2e5e30fa08bdeede5bfbfb7
[threadpool] Work around for a race-condition

Under some circumstances new_job was not signaled and the threadpool
threads didn't realized there was a workitem in the queue.

Fixes Xamarin bug #12 and Novell bug #690357.
mono/metadata/threadpool.c