mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
fix: Fixing net standard build
This commit is contained in:
parent
e437a9442c
commit
2a222289ca
2 changed files with 3 additions and 3 deletions
|
|
@ -47,14 +47,14 @@ namespace ICD.Common.Utils.Tests
|
||||||
section.Enter();
|
section.Enter();
|
||||||
|
|
||||||
// ReSharper disable once NotAccessedVariable
|
// ReSharper disable once NotAccessedVariable
|
||||||
object handle = ThreadingUtils.SafeInvoke(() => { result = section.TryEnter() ? 0 : 1; });
|
ThreadingUtils.SafeInvoke(() => { result = section.TryEnter() ? 0 : 1; });
|
||||||
|
|
||||||
Assert.IsTrue(ThreadingUtils.Wait(() => result == 1, 1000));
|
Assert.IsTrue(ThreadingUtils.Wait(() => result == 1, 1000));
|
||||||
|
|
||||||
section.Leave();
|
section.Leave();
|
||||||
|
|
||||||
// ReSharper disable once RedundantAssignment
|
// ReSharper disable once RedundantAssignment
|
||||||
handle = ThreadingUtils.SafeInvoke(() =>
|
ThreadingUtils.SafeInvoke(() =>
|
||||||
{
|
{
|
||||||
result = section.TryEnter() ? 2 : 0;
|
result = section.TryEnter() ? 2 : 0;
|
||||||
section.Leave();
|
section.Leave();
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ using Crestron.SimplSharp;
|
||||||
using Crestron.SimplSharp.Reflection;
|
using Crestron.SimplSharp.Reflection;
|
||||||
#else
|
#else
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Reflection;
|
using MethodInfo = System.Reflection.MethodInfo;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace ICD.Common.Utils
|
namespace ICD.Common.Utils
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue