cpp/atomic/atomic flag test

Atomically reads the value of the and returns the value.

@1@ Equivalent to.

@2@ Equivalent to.

Return value
The value atomically read.