dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.36k stars 4.75k forks source link

[Tracking] Expose a `Lock` type #87673

Closed kouvel closed 4 months ago

kouvel commented 1 year ago
ghost commented 1 year ago

Tagging subscribers to this area: @mangod9 See info in area-owners.md if you want to be subscribed.

Issue Details
- [ ] [Pending] Expose a `Lock` type in preview mode - https://github.com/dotnet/runtime/pull/87672 - [ ] SOS diagnostics - [ ] Other diagnostics for determining a lock owner - [ ] Proposal for integrating with the C# `lock` keyword - https://github.com/dotnet/csharplang/issues/7104 - Discussed approach, further discussion pending - [ ] Proposal for the `Lock` API - https://github.com/dotnet/runtime/issues/34812 - Partially approved, may need further discussion/changes based on other items - [ ] Roslyn analyzer warning for when an `await` is used or an async method is called inside a `using (_lock.EnterScope())` block - [ ] Roslyn analyzer warning for when `Lock` object is implicitly casted to a type (including a generic type `T`) that does not match the pattern for the integration with the C# `lock` keyword
Author: kouvel
Assignees: -
Labels: `area-System.Threading`
Milestone: Future
mangod9 commented 4 months ago

Closing since new Lock Type is now enabled in 9.