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