StickySharedResources 1.0.1
See the version list below for details.
dotnet add package StickySharedResources --version 1.0.1
NuGet\Install-Package StickySharedResources -Version 1.0.1
<PackageReference Include="StickySharedResources" Version="1.0.1" />
paket add StickySharedResources --version 1.0.1
#r "nuget: StickySharedResources, 1.0.1"
// Install StickySharedResources as a Cake Addin #addin nuget:?package=StickySharedResources&version=1.0.1 // Install StickySharedResources as a Cake Tool #tool nuget:?package=StickySharedResources&version=1.0.1
Sticky Shared Resources is designed to help you manage shared memory between multiple threads. It allows you to:
* Create resources associated to C# objects
* Acquire these resources in much the same way you might "acquire" a semaphore.
* Connect resources together. If you acquire a resource, this package ensures you will also acquire all resources it is connected to.
* Disconnect resources so threads can pick them up independently again.
This package helps you to manipulate these resources in parallel through "resource groups". You create a resource group and ask it to be populated with all the resources you need. You then manipulate these resources and, once you're done, you free the resource group, which frees the resources for other threads.
Do not create multiple resource groups in the same thread! For the least painful experience, stick to one concurrency control mechanism (monitors / semaphores / resource groups). If you've got that, you're set!
This package is a stepping stone for a more friendly way to manage shared memory between threads - through pipes.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
This package has no dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on StickySharedResources:
Package | Downloads |
---|---|
Parallel.Pipes
Pipes is a concurrency abstraction. To learn how to use them, please visit the project home page at: https://github.com/michaelbradley91/Pipes |
GitHub repositories
This package is not used by any popular GitHub repositories.
Added helper methods to create shared resources.