From bc8e565f8fc4305de8ef3e4e63d0fc6a66d76689 Mon Sep 17 00:00:00 2001 From: Markus Ewald Date: Thu, 2 Feb 2012 00:20:32 +0000 Subject: [PATCH] Fixed semaphore bug in AffineThreadPool when running on Windows git-svn-id: file:///srv/devel/repo-conversion/nusu@224 d2e56fa2-650e-0410-a79f-9358c0239efd --- Source/AffineThreadPool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/AffineThreadPool.cs b/Source/AffineThreadPool.cs index 28e03d3..6e5a6d1 100644 --- a/Source/AffineThreadPool.cs +++ b/Source/AffineThreadPool.cs @@ -91,7 +91,7 @@ namespace Nuclex.Support { #if XBOX360 || WINDOWS_PHONE workAvailable = new Semaphore(); #else - workAvailable = new System.Threading.Semaphore(0, Processors); + workAvailable = new System.Threading.Semaphore(0, int.MaxValue); #endif userWorkItems = new Queue(Processors * 4); workerThreads = new List(Processors);