Click or drag to resize

InterlockableTModify Method

Modifies the value by using the provided function. Since the function is executed while the value is locked, execution must be kept short.

Namespace: Altaxo.Threading
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public (T , T ) Modify(
	Func<T, T> func
)

Parameters

func  FuncT, T
The function to compute the new value from the old value.

Return Value

ValueTupleT, T
The old value and the new value.
See Also