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.
Install-Package StickySharedResources -Version 1.0.2
dotnet add package StickySharedResources --version 1.0.2
<PackageReference Include="StickySharedResources" Version="1.0.2" />
paket add StickySharedResources --version 1.0.2
#r "nuget: StickySharedResources, 1.0.2"
// Install StickySharedResources as a Cake Addin #addin nuget:?package=StickySharedResources&version=1.0.2 // Install StickySharedResources as a Cake Tool #tool nuget:?package=StickySharedResources&version=1.0.2
Added helper method to shared resource to connect it to other resources.
This package has no dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on StickySharedResources:
Pipes is a concurrency abstraction. To learn how to use them, please visit the project home page at: https://github.com/michaelbradley91/Pipes
This package is not used by any popular GitHub repositories.