Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorBlewzman <dw@exram.net>2013-06-27 15:33:50 +0400
committerBlewzman <dw@exram.net>2013-06-27 15:33:50 +0400
commit21ca1f54bd61b7cbce9e6a50371757557ae96de3 (patch)
tree17b527043ff755a971ea61b7365209ba4629766b /mcs
parentd0a14ebbcb3e0663b2fcbf117c16b3e90623d71d (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.cs2
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 ()