mirror of
https://github.com/digital-jellyfish/Virtu.git
synced 2024-05-31 15:41:33 +00:00
365e5723c1
--HG-- extra : convert_revision : svn%3Affd33b8c-2492-42e0-bdc5-587b920b7d6d/trunk%4050811
21 lines
470 B
C#
21 lines
470 B
C#
using System;
|
|
using System.Threading;
|
|
|
|
namespace Jellyfish.Library
|
|
{
|
|
public static class WaitHandleExtensions
|
|
{
|
|
#if XBOX
|
|
public static bool WaitOne(this WaitHandle waitHandle, int millisecondsTimeout)
|
|
{
|
|
if (waitHandle == null)
|
|
{
|
|
throw new ArgumentNullException("waitHandle");
|
|
}
|
|
|
|
return waitHandle.WaitOne(millisecondsTimeout, false);
|
|
}
|
|
#endif
|
|
}
|
|
}
|