From 4d772fb4986b7519e65d6250ac28aedcc82a5d59 Mon Sep 17 00:00:00 2001 From: Markus Ewald Date: Tue, 3 Nov 2009 20:01:59 +0000 Subject: [PATCH] Semaphore was initialized twice if its two-parameter constructor was used - fixed git-svn-id: file:///srv/devel/repo-conversion/nusu@184 d2e56fa2-650e-0410-a79f-9358c0239efd --- Source/Semaphore.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/Semaphore.cs b/Source/Semaphore.cs index 8b597f1..3084296 100644 --- a/Source/Semaphore.cs +++ b/Source/Semaphore.cs @@ -80,8 +80,7 @@ namespace Nuclex.Support { /// /// Maximum numbr of users that can access the resource at the same time /// - public Semaphore(int initialCount, int maximumCount) - : this() { + public Semaphore(int initialCount, int maximumCount) { if(initialCount > maximumCount) { throw new ArgumentOutOfRangeException( "initialCount", "Initial count must not be larger than the maximum count" @@ -158,7 +157,6 @@ namespace Nuclex.Support { } #if XBOX360 - /// /// Waits for the resource to become available and locks it /// @@ -169,7 +167,6 @@ namespace Nuclex.Support { public override bool WaitOne() { return WaitOne(-1, false); } - #endif #if !XBOX360