Skip to content

Commit

Permalink
Fixed regression
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Dec 4, 2024
1 parent 24e0ad6 commit 0aa4c56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/DotNext.Tests/Threading/AsyncReaderWriterLockTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,10 @@ public static async Task AcquireReadWriteLockSynchronously()
{
using var l = new AsyncReaderWriterLock();
True(l.TryEnterReadLock(DefaultTimeout));
True(l.TryEnterReadLock(DefaultTimeout));
Equal(2L, l.CurrentReadCount);
Equal(1L, l.CurrentReadCount);

var t = Task.Factory.StartNew(() => l.TryEnterWriteLock(DefaultTimeout), TaskCreationOptions.LongRunning);

l.Release();
l.Release();

True(await t);
Expand Down
2 changes: 1 addition & 1 deletion src/DotNext/Buffers/ByteBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public static T Read7BitEncodedInteger<T>(this ref SpanReader<byte> reader)
do
{
octet = reader.Read();
} while (!decoder.Append(octet));
} while (decoder.Append(octet));

return decoder.Value;
}
Expand Down

0 comments on commit 0aa4c56

Please sign in to comment.