Table of Contents

Class InterlockedOps

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

A collection of helper methods for atomic operations.

public static class InterlockedOps
Inheritance
InterlockedOps

Methods

ClearBits(ref int, int)

A thread-safe method to clear a specific set of bits in a variable.

ClearBits(ref long, long)

A thread-safe method to clear a specific set of bits in a variable.

ClearBits(ref uint, uint)

A thread-safe method to clear a specific set of bits in a variable.

ClearBits(ref ulong, ulong)

A thread-safe method to clear a specific set of bits in a variable.

ConditionAnd(ref int, Predicate<int>, int)

A thread-safe conditional AND operation on a variable value.

ConditionAnd(ref long, Predicate<long>, long)

A thread-safe conditional AND operation on a variable value.

ConditionAnd(ref uint, Predicate<uint>, uint)

A thread-safe conditional AND operation on a variable value.

ConditionAnd(ref ulong, Predicate<ulong>, ulong)

A thread-safe conditional AND operation on a variable value.

ConditionAnd<T>(ref int, Func<int, T, bool>, T, int)

A thread-safe conditional AND operation on a variable value with the condition based on a function that takes the current value and an argument.

ConditionAnd<T>(ref long, Func<long, T, bool>, T, long)

A thread-safe conditional AND operation on a variable value with the condition based on a function that takes the current value and an argument.

ConditionAnd<T>(ref uint, Func<uint, T, bool>, T, uint)

A thread-safe conditional AND operation on a variable value with the condition based on a function that takes the current value and an argument.

ConditionAnd<T>(ref ulong, Func<ulong, T, bool>, T, ulong)

A thread-safe conditional AND operation on a variable value with the condition based on a function that takes the current value and an argument.

ConditionClearBits(ref int, Predicate<int>, int)

A thread-safe method to conditionally clear a specific set of bits in a variable.

ConditionClearBits(ref long, Predicate<long>, long)

A thread-safe method to conditionally clear a specific set of bits in a variable.

ConditionClearBits(ref uint, Predicate<uint>, uint)

A thread-safe method to conditionally clear a specific set of bits in a variable.

ConditionClearBits(ref ulong, Predicate<ulong>, ulong)

A thread-safe method to conditionally clear a specific set of bits in a variable.

ConditionClearBits<T>(ref int, Func<int, T, bool>, T, int)

A thread-safe method to conditionally clear a specific set of bits in a variable with the condition based on a function that takes the current value and an argument.

ConditionClearBits<T>(ref long, Func<long, T, bool>, T, long)

A thread-safe method to conditionally clear a specific set of bits in a variable with the condition based on a function that takes the current value and an argument.

ConditionClearBits<T>(ref uint, Func<uint, T, bool>, T, uint)

A thread-safe method to conditionally clear a specific set of bits in a variable with the condition based on a function that takes the current value and an argument.

ConditionClearBits<T>(ref ulong, Func<ulong, T, bool>, T, ulong)

A thread-safe method to conditionally clear a specific set of bits in a variable with the condition based on a function that takes the current value and an argument.

ConditionOr(ref int, Predicate<int>, int)

A thread-safe conditional OR operation on a variable value.

ConditionOr(ref long, Predicate<long>, long)

A thread-safe conditional OR operation on a variable value.

ConditionOr(ref uint, Predicate<uint>, uint)

A thread-safe conditional OR operation on a variable value.

ConditionOr(ref ulong, Predicate<ulong>, ulong)

A thread-safe conditional OR operation on a variable value.

ConditionOr<T>(ref int, Func<int, T, bool>, T, int)

A thread-safe conditional OR operation on a variable value with the condition based on a function that takes the current value and an argument.

ConditionOr<T>(ref long, Func<long, T, bool>, T, long)

A thread-safe conditional OR operation on a variable value with the condition based on a function that takes the current value and an argument.

ConditionOr<T>(ref uint, Func<uint, T, bool>, T, uint)

A thread-safe conditional OR operation on a variable value with the condition based on a function that takes the current value and an argument.

ConditionOr<T>(ref ulong, Func<ulong, T, bool>, T, ulong)

A thread-safe conditional OR operation on a variable value with the condition based on a function that takes the current value and an argument.

ConditionSetBits(ref int, Predicate<int>, int)

A thread-safe method to conditionally set a specific set of bits in a variable.

ConditionSetBits(ref long, Predicate<long>, long)

A thread-safe method to conditionally set a specific set of bits in a variable.

ConditionSetBits(ref uint, Predicate<uint>, uint)

A thread-safe method to conditionally set a specific set of bits in a variable.

ConditionSetBits(ref ulong, Predicate<ulong>, ulong)

A thread-safe method to conditionally set a specific set of bits in a variable.

ConditionSetBits<T>(ref int, Func<int, T, bool>, T, int)

A thread-safe method to conditionally set a specific set of bits in a variable with the condition based on a function that takes the current value and an argument.

ConditionSetBits<T>(ref long, Func<long, T, bool>, T, long)

A thread-safe method to conditionally set a specific set of bits in a variable with the condition based on a function that takes the current value and an argument.

ConditionSetBits<T>(ref uint, Func<uint, T, bool>, T, uint)

A thread-safe method to conditionally set a specific set of bits in a variable with the condition based on a function that takes the current value and an argument.

ConditionSetBits<T>(ref ulong, Func<ulong, T, bool>, T, ulong)

A thread-safe method to conditionally set a specific set of bits in a variable with the condition based on a function that takes the current value and an argument.

ConditionXor(ref int, Predicate<int>, int)

A thread-safe conditional exclusive OR operation on a variable value.

ConditionXor(ref long, Predicate<long>, long)

A thread-safe conditional exclusive OR operation on a variable value.

ConditionXor(ref uint, Predicate<uint>, uint)

A thread-safe conditional exclusive OR operation on a variable value.

ConditionXor(ref ulong, Predicate<ulong>, ulong)

A thread-safe conditional exclusive OR operation on a variable value.

ConditionXor<T>(ref int, Func<int, T, bool>, T, int)

A thread-safe conditional exclusive OR operation on a variable value with the condition based on a function that takes the current value and an argument.

ConditionXor<T>(ref long, Func<long, T, bool>, T, long)

A thread-safe conditional exclusive OR operation on a variable value with the condition based on a function that takes the current value and an argument.

ConditionXor<T>(ref uint, Func<uint, T, bool>, T, uint)

A thread-safe conditional exclusive OR operation on a variable value with the condition based on a function that takes the current value and an argument.

ConditionXor<T>(ref ulong, Func<ulong, T, bool>, T, ulong)

A thread-safe conditional exclusive OR operation on a variable value with the condition based on a function that takes the current value and an argument.

SetBits(ref int, int)

A thread-safe method to set a specific set of bits in a variable.

SetBits(ref long, long)

A thread-safe method to set a specific set of bits in a variable.

SetBits(ref uint, uint)

A thread-safe method to set a specific set of bits in a variable.

SetBits(ref ulong, ulong)

A thread-safe method to set a specific set of bits in a variable.

Xor(ref int, int)

A thread-safe exclusive OR operation on a variable value.

Xor(ref long, long)

A thread-safe exclusive OR operation on a variable value.

Xor(ref uint, uint)

A thread-safe exclusive OR operation on a variable value.

Xor(ref ulong, ulong)

A thread-safe exclusive OR operation on a variable value.