diff options
author | Blewzman <dw@exram.net> | 2013-06-27 15:33:50 +0400 |
---|---|---|
committer | Blewzman <dw@exram.net> | 2013-06-27 15:33:50 +0400 |
commit | 21ca1f54bd61b7cbce9e6a50371757557ae96de3 (patch) | |
tree | 17b527043ff755a971ea61b7365209ba4629766b /mcs | |
parent | d0a14ebbcb3e0663b2fcbf117c16b3e90623d71d (diff) |
Fix SemaphoreSlim Constructor.
Fix https://bugzilla.xamarin.com/show_bug.cgi?id=11598.
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/corlib/System.Threading/SemaphoreSlim.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/corlib/System.Threading/SemaphoreSlim.cs b/mcs/class/corlib/System.Threading/SemaphoreSlim.cs index 3b63c4231d6..3a75238f4df 100644 --- a/mcs/class/corlib/System.Threading/SemaphoreSlim.cs +++ b/mcs/class/corlib/System.Threading/SemaphoreSlim.cs @@ -54,7 +54,7 @@ namespace System.Threading this.maxCount = maxCount; this.currCount = initialCount; - this.handle = new ManualResetEvent (initialCount == 0); + this.handle = new ManualResetEvent (initialCount > 0); } public void Dispose () |