Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for threading lock in .NET 9 and C# 13 #277

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michaelstonis
Copy link
Contributor

Adds support using System.Threading.Lock on platforms that support .NET 9 and C# 13. All unit tests continue to pass.

@neuecc
Copy link
Member

neuecc commented Feb 13, 2025

I think use polyfiil is better aproach rather than #if every fields.

#if !NET9_0_OR_GREATER

namespace System.Threading
{
    internal sealed class Lock
    {
    }
}

#endif

@michaelstonis
Copy link
Contributor Author

Ha. Yea, it certainly is. It didn't even cross my mind. lol. I will update this.

Are you good with the concept?

@neuecc
Copy link
Member

neuecc commented Feb 14, 2025

Yes. That's good.

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.

2 participants