Table of Contents

Class AtomicHelper

Namespace
HelixToolkit.SharpDX
Assembly
HelixToolkit.SharpDX.dll
public static class AtomicHelper
Inheritance
AtomicHelper
Inherited Members

Methods

DecrementIfGreaterThan(ref int, int)

Decrement value by 1 if value is larger than comparand

public static bool DecrementIfGreaterThan(ref int value, int comparand)

Parameters

value int
comparand int

Returns

bool

Success or not

ExchangeIfGreaterThan(ref int, int, int)

Only exchange value to target if value is greater than comparand.

public static bool ExchangeIfGreaterThan(ref int value, int target, int comparand)

Parameters

value int
target int
comparand int

Returns

bool

Success or not

IncrementIfGreaterThan(ref int, int)

Only increment value by 1 if value is greater than comparand.

public static bool IncrementIfGreaterThan(ref int value, int comparand)

Parameters

value int
comparand int

Returns

bool

Success or not

Read(ref int)

Read the value

public static int Read(ref int value)

Parameters

value int

Returns

int