This commit is contained in:
Timothy Baldridge 2019-11-10 21:10:26 -07:00
parent e61b203d4c
commit 35897bbf92
4 changed files with 0 additions and 76 deletions

View File

@ -1,42 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading.Tasks.Sources;
namespace Wabbajack.Common.CSP
{
public struct Box<T>
{
public T Value;
public bool IsSet;
public Box(T value)
{
Value = value;
IsSet = true;
}
public static Box<T> Empty = new Box<T>();
}
class test : IValueTaskSource
{
public ValueTaskSourceStatus GetStatus(short token)
{
throw new NotImplementedException();
}
public void OnCompleted(Action<object> continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags)
{
throw new NotImplementedException();
}
public void GetResult(short token)
{
throw new NotImplementedException();
}
}
}

View File

@ -1,29 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace Wabbajack.Common.CSP
{
public class FnHandler<T> : Handler<T>
{
private readonly bool _blockable;
private T _f;
public FnHandler(T f, bool blockable=false)
{
_f = f;
_blockable = blockable;
}
public bool IsActive => true;
public bool IsBlockable => _blockable;
public uint LockId => 0;
public T Commit()
{
return _f;
}
}
}

View File

@ -85,17 +85,13 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AsyncWorkQueue.cs" />
<Compile Include="AsyncWorkQueueExtensions.cs" />
<Compile Include="BSDiff.cs" />
<Compile Include="ChildProcessTracker.cs" />
<Compile Include="Consts.cs" />
<Compile Include="CSP\AChannel.cs" />
<Compile Include="CSP\Box.cs" />
<Compile Include="CSP\Channel.cs" />
<Compile Include="CSP\CSPExtensions.cs" />
<Compile Include="CSP\FixedSizeBuffer.cs" />
<Compile Include="CSP\FnHandler.cs" />
<Compile Include="CSP\IBuffer.cs" />
<Compile Include="CSP\Handler.cs" />
<Compile Include="CSP\IChannel.cs" />

View File

@ -93,7 +93,6 @@
</ItemGroup>
<ItemGroup>
<Compile Include="ACompilerTest.cs" />
<Compile Include="CSP\AsyncWorkQueueTests.cs" />
<Compile Include="CSP\ChannelTests.cs" />
<Compile Include="CSP\CSPTests.cs" />
<Compile Include="DownloaderTests.cs" />