Skip to content

Commit

Permalink
add NoOpLock
Browse files Browse the repository at this point in the history
  • Loading branch information
JPWatson committed Aug 17, 2017
1 parent 5bbc5e6 commit 18da561
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Adaptive.Agrona/Adaptive.Agrona.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
<Compile Include="IMutableDirectBuffer.cs" />
<Compile Include="IManagedResource.cs" />
<Compile Include="IoUtil.cs" />
<Compile Include="Concurrent\NoOpLock.cs" />
<Compile Include="Objects.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Concurrent\SystemEpochClock.cs" />
Expand Down
18 changes: 18 additions & 0 deletions src/Adaptive.Agrona/Concurrent/NoOpLock.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace Adaptive.Agrona.Concurrent
{
public class NoOpLock : ILock
{
public void Lock()
{
}

public void Unlock()
{
}

public bool TryLock()
{
return true;
}
}
}

0 comments on commit 18da561

Please sign in to comment.