Skip to content

Commit

Permalink
fix: 🔥 remove gc mutex locks (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
anonhostpi committed Jan 18, 2024
1 parent 986dd8b commit 6b46e9d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion Import-Package/Import-Package.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ $bootstrapper = & (Resolve-Path "$PSScriptRoot\packaging.ps1")
$loaded = @{
"NuGet.Frameworks" = "netstandard2.0"
}
$mutexes = @{}

New-Item (Join-Path $PSScriptRoot "Packages") -Force -ItemType Directory
New-Item (Join-Path $PSScriptRoot "Temp") -Force -ItemType Directory
Expand Down
2 changes: 0 additions & 2 deletions Import-Package/src/Resolve-CachedPackage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ function Resolve-CachedPackage {
$compressed
}

$mutexes."$id" = New-Object System.Threading.Mutex($true, "Global\ImportPackage-$id") # Lock the directory from automatic removal

Join-Path $parent $id

# Resolve-Path "."
Expand Down

0 comments on commit 6b46e9d

Please sign in to comment.