Cosmos/source/Cosmos.System2_Plugs/System/Threading/ThreadImpl.cs
2020-11-26 23:15:54 +01:00

35 lines
898 B
C#

using System;
using Cosmos.HAL;
using IL2CPU.API.Attribs;
namespace Cosmos.System_Plugs.System.Threading
{
[Plug("System.Threading.Thread, System.Private.CoreLib")]
public static class ThreadImpl
{
public static void Sleep(TimeSpan timeout)
{
Global.PIT.Wait((uint)timeout.TotalMilliseconds);
}
public static void Sleep(int millisecondsTimeout)
{
Global.PIT.Wait((uint)millisecondsTimeout);
}
public static bool Yield()
{
throw new NotImplementedException("Thread.Yield()");
}
public static void SpinWaitInternal(object iterations)
{
throw new NotImplementedException("Thread.SpinWaitInternal()");
}
public static int get_ManagedThreadId(object aItem)
{
throw new NotImplementedException();
}
}
}