From 04396b75cd7613cc9102859576bf4422e05aea9c Mon Sep 17 00:00:00 2001 From: MishaTY <46088515+MishaTY@users.noreply.github.com> Date: Thu, 19 Nov 2020 12:28:41 -0500 Subject: [PATCH] Update InterlockedImpl.cs --- source/Cosmos.Core_Plugs/System/Threading/InterlockedImpl.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/Cosmos.Core_Plugs/System/Threading/InterlockedImpl.cs b/source/Cosmos.Core_Plugs/System/Threading/InterlockedImpl.cs index 89c18d70d..751e5909c 100644 --- a/source/Cosmos.Core_Plugs/System/Threading/InterlockedImpl.cs +++ b/source/Cosmos.Core_Plugs/System/Threading/InterlockedImpl.cs @@ -10,5 +10,9 @@ namespace Cosmos.Core_Plugs.System.Threading { return aData -= 1; } + public static int Increment(ref int aData) + { + return aData += 1; + } } }