Skip to content

Commit

Permalink
Made IsHeldByCurrentThread unavailable for frameworks that don't supp…
Browse files Browse the repository at this point in the history
…ort Monitor.IsEntered rather than throwing a NotSupportedException.
  • Loading branch information
MarkCiliaVincenti committed Oct 1, 2024
1 parent 0fe672b commit e5ea79c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Version>2.0.4</Version>
<PackageIcon>logo.png</PackageIcon>
<PackageReleaseNotes>Cleaning up and improved documentation.</PackageReleaseNotes>
<PackageReleaseNotes>Made IsHeldByCurrentThread unavailable for frameworks that don't support Monitor.IsEntered rather than throwing a NotSupportedException.</PackageReleaseNotes>
<Description>A micro-library that backports/polyfills .NET 9.0+'s System.Threading.Lock to prior framework versions (from .NET Framework 3.5 up to .NET 8.0), providing as much backward compatibility as possible.</Description>
<Copyright>© 2024 Mark Cilia Vincenti</Copyright>
<PackageTags>System.Threading.Lock,lock,backport,polyfill,backward,compatible,compatibility,synchronization,synchronisation</PackageTags>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ There is also no need to reference this library as a dependency for .NET 9.0+. Y

```
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net9.0'))">
<PackageReference Include="Backport.System.Threading.Lock" Version="2.0.3" />
<PackageReference Include="Backport.System.Threading.Lock" Version="2.0.4" />
</ItemGroup>
```

Expand Down

0 comments on commit e5ea79c

Please sign in to comment.