File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -226,12 +226,10 @@ public static async Task AcquireReadWriteLockSynchronously()
226226 {
227227 using var l = new AsyncReaderWriterLock ( ) ;
228228 True ( l . TryEnterReadLock ( DefaultTimeout ) ) ;
229- True ( l . TryEnterReadLock ( DefaultTimeout ) ) ;
230- Equal ( 2L , l . CurrentReadCount ) ;
229+ Equal ( 1L , l . CurrentReadCount ) ;
231230
232231 var t = Task . Factory . StartNew ( ( ) => l . TryEnterWriteLock ( DefaultTimeout ) , TaskCreationOptions . LongRunning ) ;
233232
234- l . Release ( ) ;
235233 l . Release ( ) ;
236234
237235 True ( await t ) ;
Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ public static T Read7BitEncodedInteger<T>(this ref SpanReader<byte> reader)
357357 do
358358 {
359359 octet = reader . Read ( ) ;
360- } while ( ! decoder . Append ( octet ) ) ;
360+ } while ( decoder . Append ( octet ) ) ;
361361
362362 return decoder . Value ;
363363 }
You can’t perform that action at this time.
0 commit comments