Cosmos/source2/Kernel/System/Cosmos.System.Plugs.System/Threading/MonitorImpl.cs
kudzu_cp 3ab639a234
2011-03-06 16:34:57 +00:00

25 lines
756 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cosmos.IL2CPU.Plugs;
namespace Cosmos.System.Plugs.System.System.Threading {
//TODO: We dont support threading at all, but a lot of .NET calls these
// and therefore interferes with us using them. Since we don't support threading
// currently we can just ignore them by creating empty plugs.
[Plug(Target = typeof(global::System.Threading.Monitor))]
public class MonitorImpl {
public static void Enter(object aObj) {
int i = 0;
}
public static void Exit(object aObj) {
int i = 0;
}
public static void ReliableEnter(object obj, ref bool tookLock) {
tookLock = true;
}
}
}