Cosmos/source/Cosmos.System2_Plugs/System/Threading/ThreadImpl.cs
fanoI bd6d211f5d - Added tests for HashTable
- Changed plug in ArrayImpl taking 'this' as pointer with the ObjectPointerAccess attribute (this solves the foreach test in HashTable)
- Corrected Thread plug signature
- Corrected SpinWait plug signature
- Added plug for Decimal.Equal (strangely was not required before)
2018-04-30 21:40:53 +02:00

30 lines
768 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()");
}
}
}