mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +00:00
18 lines
397 B
C#
18 lines
397 B
C#
using System.Threading;
|
|
using IL2CPU.API.Attribs;
|
|
|
|
namespace Cosmos.Core_Plugs.System.Threading
|
|
{
|
|
[Plug(Target = typeof(Interlocked))]
|
|
public static class InterlockedImpl
|
|
{
|
|
public static int Decrement(ref int aData)
|
|
{
|
|
return aData -= 1;
|
|
}
|
|
public static int Increment(ref int aData)
|
|
{
|
|
return aData += 1;
|
|
}
|
|
}
|
|
}
|