mirror of
https://github.com/digital-jellyfish/Virtu.git
synced 2024-11-30 20:49:26 +00:00
21 lines
450 B
C#
21 lines
450 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
|
|||
|
}
|
|||
|
}
|