Skip to content

ReaderWriterLockSlim over lock: update to .NET 10 - #2323

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/96125-csharp-when-to-use-readerwriterlockslim-over-lock
Open

vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/96125-csharp-when-to-use-readerwriterlockslim-over-lock

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves the ReaderWriterLockSlim sample to net10.0 with MSTest 4.5.1, Microsoft.NET.Test.Sdk 18.11.0 and coverlet.collector 10.1.0, switches the lock field to System.Threading.Lock, reads the random index inside the upgradeable lock in ReadOrAdd, adds an AsyncPitfall class that shows ExitWriteLock failing after an await (printed by Program.cs), and adds three tests for the recursion policy and the read-to-write upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant