ILGPU  0.9.0
ILGPU.AtomicOperations.ICompareExchangeOperation< T > Interface Template Reference

Represents the base interface for compare-exchange operations. More...

Public Member Functions

CompareExchange (ref T target, T compare, T value)
 Realizes an atomic compare-exchange operation. More...
 

Detailed Description

Represents the base interface for compare-exchange operations.

Template Parameters
TThe type of the compare-exchange operation.
Type Constraints
T :unmanaged 

Member Function Documentation

T ILGPU.AtomicOperations.ICompareExchangeOperation< T >.CompareExchange ( ref T  target,
compare,
value 
)

Realizes an atomic compare-exchange operation.

Parameters
targetThe target location.
compareThe expected comparison value.
valueThe target value.
Returns
The old value.

The documentation for this interface was generated from the following file: