BloombergLP::bsls::AtomicOperations::getPtr

Atomically retrieve the value of the specified pointer.

Synopsis

Declared in <bsls_atomicoperations.h>

static
void*
getPtr(AtomicTypes::Pointer const* atomicPtr);

Description

Atomically retrieve the value of the specified atomicPtr, providing the sequential consistency memory ordering guarantee.

Return Value

current value of atomicPtr

Parameters

NameDescription
atomicPtratomic pointer whose value is read