[#BloombergLP-bsls-AtomicOperations_DefaultInt64-0a-swapInt64AcqRel] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/AtomicOperations_DefaultInt64-0a.adoc[AtomicOperations_DefaultInt64]::swapInt64AcqRel :relfileprefix: ../../../ :mrdocs: Atomically swap `atomicInt` with acquire/release ordering. == Synopsis Declared in `<bsls_atomicoperations_default.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bsls/Types/Int64.adoc[Types::Int64] swapInt64AcqRel( AtomicTypes::Int64* atomicInt, xref:BloombergLP/bsls/Types/Int64.adoc[Types::Int64] swapValue); ---- == Description Atomically set the value of the specified `atomicInt` to the specified `swapValue` and return its previous value, providing the acquire/release memory ordering guarantee. == Return Value previous value of `atomicInt` == Parameters [cols="1,4"] |=== | Name| Description | *atomicInt* | atomic 64‐bit integer to modify | *swapValue* | value to store |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#