Fixed semaphore bug in AffineThreadPool when running on Windows
git-svn-id: file:///srv/devel/repo-conversion/nusu@224 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
eb3083cf9e
commit
bc8e565f8f
|
@ -91,7 +91,7 @@ namespace Nuclex.Support {
|
||||||
#if XBOX360 || WINDOWS_PHONE
|
#if XBOX360 || WINDOWS_PHONE
|
||||||
workAvailable = new Semaphore();
|
workAvailable = new Semaphore();
|
||||||
#else
|
#else
|
||||||
workAvailable = new System.Threading.Semaphore(0, Processors);
|
workAvailable = new System.Threading.Semaphore(0, int.MaxValue);
|
||||||
#endif
|
#endif
|
||||||
userWorkItems = new Queue<UserWorkItem>(Processors * 4);
|
userWorkItems = new Queue<UserWorkItem>(Processors * 4);
|
||||||
workerThreads = new List<Thread>(Processors);
|
workerThreads = new List<Thread>(Processors);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user