mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
25 lines
749 B
C#
25 lines
749 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Cosmos.IL2CPU.Plugs;
|
|
|
|
namespace Cosmos.System.Plugs.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;
|
|
}
|
|
}
|
|
}
|