From d5293d8cb92a4381c4fa34d82c63d9421e8d5987 Mon Sep 17 00:00:00 2001 From: Markus Ewald Date: Mon, 5 Oct 2009 19:43:04 +0000 Subject: [PATCH] Made Semaphore usable on the XBox 360 git-svn-id: file:///srv/devel/repo-conversion/nusu@181 d2e56fa2-650e-0410-a79f-9358c0239efd --- Source/Semaphore.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Source/Semaphore.cs b/Source/Semaphore.cs index fa355c3..8b597f1 100644 --- a/Source/Semaphore.cs +++ b/Source/Semaphore.cs @@ -157,6 +157,21 @@ namespace Nuclex.Support { } } +#if XBOX360 + + /// + /// Waits for the resource to become available and locks it + /// + /// + /// True if the resource was available and is now locked, false if + /// the timeout has been reached. + /// + public override bool WaitOne() { + return WaitOne(-1, false); + } + +#endif + #if !XBOX360 /// /// Waits for the resource to become available and locks it