Skip to content

Conversation

@michaelnebel
Copy link
Contributor

@michaelnebel michaelnebel commented Nov 25, 2024

As of C# 13 there is a dedicated lock object type for threat synchronization: https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-13#new-lock-object
This should perform slightly better than just locking on another object type.

In this PR we use the new Lock type for sync locks where applicable.

@github-actions github-actions bot added the C# label Nov 25, 2024
@michaelnebel michaelnebel force-pushed the csharp/locks branch 5 times, most recently from b054e7c to 33d3218 Compare November 29, 2024 12:51
@michaelnebel michaelnebel added the no-change-note-required This PR does not need a change note label Dec 4, 2024
@michaelnebel michaelnebel marked this pull request as ready for review December 4, 2024 14:31
@michaelnebel michaelnebel requested a review from a team as a code owner December 4, 2024 14:31
@michaelnebel
Copy link
Contributor Author

DCA looks good

@michaelnebel michaelnebel merged commit 80be95d into github:main Dec 5, 2024
16 checks passed
@michaelnebel michaelnebel deleted the csharp/locks branch December 5, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C# no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants