Made Semaphore usable on the XBox 360

git-svn-id: file:///srv/devel/repo-conversion/nusu@181 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
Markus Ewald 2009-10-05 19:43:04 +00:00
parent 9669adcab5
commit d5293d8cb9

View File

@ -157,6 +157,21 @@ namespace Nuclex.Support {
}
}
#if XBOX360
/// <summary>
/// Waits for the resource to become available and locks it
/// </summary>
/// <returns>
/// True if the resource was available and is now locked, false if
/// the timeout has been reached.
/// </returns>
public override bool WaitOne() {
return WaitOne(-1, false);
}
#endif
#if !XBOX360
/// <summary>
/// Waits for the resource to become available and locks it