LockerHelpers 1.0.1

.NET Standard 2.0
There is a newer version of this package available.
See the version list below for details.
NuGet\Install-Package LockerHelpers -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package LockerHelpers --version 1.0.1
<PackageReference Include="LockerHelpers" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LockerHelpers --version 1.0.1
#r "nuget: LockerHelpers, 1.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install LockerHelpers as a Cake Addin
#addin nuget:?package=LockerHelpers&version=1.0.1

// Install LockerHelpers as a Cake Tool
#tool nuget:?package=LockerHelpers&version=1.0.1

Locker Helpers

Provides helpers for execution locking mechanism. Can be used for heavy multi threading operations.

NuGets

Name Info
LockerHelpers NuGet

Installation

// Install release version
Install-Package LockerHelpers

// Install pre-release version
Install-Package LockerHelpers -pre

Supported frameworks

.NET Standard 2.0 and above - see https://github.com/dotnet/standard/blob/master/docs/versions.md for compatibility matrix

Usage

RWLock Sample

using LockerHelpers;

namespace YourNamespace
{
    public class SafeList<T>
    {
        private List<T> list = new List<T>;
        private RWLock rwLock = new RWLock();

        public int Count
        {
            get
            {
                return rwLock.LockRead(() => list.Count);
            }
        }

        public void SafeAdd(T value)
        {
            rwLock.LockWrite(() => list.Add(value));
        }

        public void SafeRemove(T value)
        {
            rwLock.LockWrite(() => list.Remove(value));
        }
    }
}

Want To Support This Project?

All I have ever asked is to be active by submitting bugs, features, and sending those pull requests down!.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on LockerHelpers:

Package Downloads
ObservableHelpers

Observable helpers with short-and-easy and UI-safe property implementations. Can be used for any MVVM software architectural applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.6 85 9/8/2022
1.0.5 58 9/4/2022
1.0.4 54 9/4/2022
1.0.3 245 9/4/2022
1.0.2 320 3/7/2022
1.0.1 287 2/21/2022
1.0.0 114 2/19/2022

* Updated target framework