Interlocked Class (System.Threading) (original) (raw)
Adds two 32-bit integers and replaces the first integer with the sum, as an atomic operation.
Adds two 64-bit integers and replaces the first integer with the sum, as an atomic operation.
Adds two 32-bit unsigned integers and replaces the first integer with the sum, as an atomic operation.
Adds two 64-bit unsigned integers and replaces the first integer with the sum, as an atomic operation.
Bitwise "ands" two 32-bit signed integers and replaces the first integer with the result, as an atomic operation.
Bitwise "ands" two 64-bit signed integers and replaces the first integer with the result, as an atomic operation.
Bitwise "ands" two 32-bit unsigned integers and replaces the first integer with the result, as an atomic operation.
Bitwise "ands" two 64-bit unsigned integers and replaces the first integer with the result, as an atomic operation.
CompareExchange(Byte, Byte, Byte)
Compares two 8-bit unsigned integers for equality and, if they are equal, replaces the first value, as an atomic operation.
CompareExchange(Double, Double, Double)
Compares two double-precision floating point numbers for equality and, if they are equal, replaces the first value, as an atomic operation.
CompareExchange(Int16, Int16, Int16)
Compares two 16-bit unsigned integers for equality and, if they are equal, replaces the first value, as an atomic operation.
CompareExchange(Int32, Int32, Int32)
Compares two 32-bit signed integers for equality and, if they are equal, replaces the first value, as an atomic operation.
CompareExchange(Int64, Int64, Int64)
Compares two 64-bit signed integers for equality and, if they are equal, replaces the first value, as an atomic operation.
CompareExchange(IntPtr, IntPtr, IntPtr)
Compares two platform-specific handles or pointers for equality and, if they are equal, replaces the first one, as an atomic operation.
CompareExchange(Object, Object, Object)
Compares two objects for reference equality and, if they are equal, replaces the first object, as an atomic operation.
CompareExchange(SByte, SByte, SByte)
Compares two 8-bit signed integers for equality and, if they are equal, replaces the first value, as an atomic operation.
CompareExchange(Single, Single, Single)
Compares two single-precision floating point numbers for equality and, if they are equal, replaces the first value, as an atomic operation.
CompareExchange(UInt16, UInt16, UInt16)
Compares two 16-bit signed integers for equality and, if they are equal, replaces the first value, as an atomic operation.
CompareExchange(UInt32, UInt32, UInt32)
Compares two 32-bit unsigned integers for equality and, if they are equal, replaces the first value, as an atomic operation.
CompareExchange(UInt64, UInt64, UInt64)
Compares two 64-bit unsigned integers for equality and, if they are equal, replaces the first value, as an atomic operation.
CompareExchange(UIntPtr, UIntPtr, UIntPtr)
Compares two platform-specific handles or pointers for equality and, if they are equal, replaces the first one, as an atomic operation.
Compares two instances of the specified reference type T
for reference equality and, if they are equal, replaces the first one, as an atomic operation.
Decrements a specified variable and stores the result, as an atomic operation.
Decrements the specified variable and stores the result, as an atomic operation.
Decrements a specified variable and stores the result, as an atomic operation.
Decrements a specified variable and stores the result, as an atomic operation.
Sets a 8-bit unsigned integer to a specified value and returns the original value, as an atomic operation.
Sets a double-precision floating point number to a specified value and returns the original value, as an atomic operation.
Sets a 16-bit unsigned integer to a specified value and returns the original value, as an atomic operation.
Sets a 32-bit signed integer to a specified value and returns the original value, as an atomic operation.
Sets a 64-bit signed integer to a specified value and returns the original value, as an atomic operation.
Sets a platform-specific handle or pointer to a specified value and returns the original value, as an atomic operation.
Sets an object to a specified value and returns a reference to the original object, as an atomic operation.
Sets a 8-bit signed integer to a specified value and returns the original value, as an atomic operation.
Sets a single-precision floating point number to a specified value and returns the original value, as an atomic operation.
Sets a 16-bit signed integer to a specified value and returns the original value, as an atomic operation.
Sets a 32-bit unsigned integer to a specified value and returns the original value, as an atomic operation.
Sets a 64-bit unsigned integer to a specified value and returns the original value, as an atomic operation.
Sets a platform-specific handle or pointer to a specified value and returns the original value, as an atomic operation.
Sets a variable of the specified type T
to a specified value and returns the original value, as an atomic operation.
Increments a specified variable and stores the result, as an atomic operation.
Increments a specified variable and stores the result, as an atomic operation.
Increments a specified variable and stores the result, as an atomic operation.
Increments a specified variable and stores the result, as an atomic operation.
Synchronizes memory access as follows: The processor that executes the current thread cannot reorder instructions in such a way that memory accesses before the call to MemoryBarrier() execute after memory accesses that follow the call to MemoryBarrier().
Provides a process-wide memory barrier that ensures that reads and writes from any CPU cannot move across the barrier.
Bitwise "ors" two 32-bit signed integers and replaces the first integer with the result, as an atomic operation.
Bitwise "ors" two 64-bit signed integers and replaces the first integer with the result, as an atomic operation.
Bitwise "ors" two 32-bit unsigned integers and replaces the first integer with the result, as an atomic operation.
Bitwise "ors" two 64-bit unsigned integers and replaces the first integer with the result, as an atomic operation.
Returns a 64-bit value, loaded as an atomic operation.
Returns a 64-bit unsigned value, loaded as an atomic operation.
Defines a memory fence that blocks speculative execution past this point until pending reads and writes are complete.