InterlockedSpinSwapT Method |
INTERNAL!
Atomically updates the object
reference by calling
updater to get the new value.
Note that
updater may be called many times so it should be idempotent.
RemarksNote! Part of internal API. Breaking changes may occur without notice. Use at own risk.
Namespace: Akka.Util.InternalAssembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntaxpublic static T Swap<T>(
ref T reference,
Func<T, T> updater
)
where T : class
Public Shared Function Swap(Of T As Class) (
ByRef reference As T,
updater As Func(Of T, T)
) As T
public:
generic<typename T>
where T : ref class
static T Swap(
T% reference,
Func<T, T>^ updater
)
static member Swap :
reference : 'T byref *
updater : Func<'T, 'T> -> 'T when 'T : not struct
Parameters
- reference
- Type: T
[Missing <param name="reference"/> documentation for "M:Akka.Util.Internal.InterlockedSpin.Swap``1(``0@,System.Func{``0,``0})"]
- updater
- Type: SystemFuncT, T
[Missing <param name="updater"/> documentation for "M:Akka.Util.Internal.InterlockedSpin.Swap``1(``0@,System.Func{``0,``0})"]
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:Akka.Util.Internal.InterlockedSpin.Swap``1(``0@,System.Func{``0,``0})"]
Return Value
Type:
TThe updated value.
See Also