Skip to content

Commit

Permalink
Fix null check for AsyncNonKeyedLockReleaser.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCiliaVincenti committed Nov 10, 2024
1 parent 506f4d2 commit 0a1789a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions AsyncKeyedLock/AsyncKeyedLock.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
<PackageProjectUrl>https://github.com/MarkCiliaVincenti/AsyncKeyedLock</PackageProjectUrl>
<Copyright>MIT</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Version>7.1.2</Version>
<Version>7.1.3</Version>
<Nullable>Enable</Nullable>
<PackageIcon>logo.png</PackageIcon>
<PackageReleaseNotes>Performance improvements for timeout-based locking and StripedAsyncKeyedLocker; fixes in ConditionalLocks.</PackageReleaseNotes>
<PackageReleaseNotes>Fix null check for AsyncNonKeyedLockReleaser.</PackageReleaseNotes>
<Description>An asynchronous .NET Standard 2.0 library that allows you to lock based on a key (keyed semaphores), limiting concurrent threads sharing the same key to a specified number, with optional pooling for reducing memory allocations.</Description>
<Copyright>© 2024 Mark Cilia Vincenti</Copyright>
<PackageTags>async,lock,key,keyed,semaphore,striped,dictionary,concurrentdictionary,pooling,duplicate,synchronization</PackageTags>
<RepositoryType>git</RepositoryType>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<AssemblyVersion>7.1.2.0</AssemblyVersion>
<FileVersion>7.1.2.0</FileVersion>
<AssemblyVersion>7.1.3.0</AssemblyVersion>
<FileVersion>7.1.3.0</FileVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
<IsPackable>true</IsPackable>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
Expand Down
2 changes: 1 addition & 1 deletion AsyncKeyedLock/AsyncNonKeyedLockReleaser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal AsyncNonKeyedLockReleaser(AsyncNonKeyedLocker locker)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public readonly void Dispose()
{
_locker._semaphoreSlim.Release();
_locker?._semaphoreSlim.Release();
}
}
}

0 comments on commit 0a1789a

Please sign in to comment.