SourcePro® API Reference Guide

Product Documentation:
   SourcePro
Documentation Home
Classes | Enumerations

Module Description

Classes in this group provide abstractions for performing atomic operations on integral types.

Classes

class  RWAtomicFlag
 Atomically sets and clears a bit flag. More...
 
class  RWTAtomic< T >
 Atomically manipulates an integral type. More...
 
class  RWTAtomic< T * >
 Atomically manipulates a pointer type. More...
 

Enumerations

enum  RWAtomicMemoryOrder {
  rw_mem_order_relaxed, rw_mem_order_consume, rw_mem_order_acquire, rw_mem_order_release,
  rw_mem_order_acq_rel, rw_mem_order_seq_cst
}
 

Enumeration Type Documentation

Specifies the ordering semantics of atomic operations. Specifying memory ordering semantics indicates the minimum ordering constraints on the operation. Implementations may impose stricter ordering constraints.

Enumerator
rw_mem_order_relaxed 

No memory ordering is required.

rw_mem_order_consume 

Ensure that previous "release" operations on this variable are visible.

rw_mem_order_acquire 

Ensure that previous "release" operations on this variable are visible.

rw_mem_order_release 

Ensure that changes to this variable are visible to later operations that perform a "consume" or "acquire" operation.

rw_mem_order_acq_rel 

Ensure that prior "release" operations on this variable are visible and that changes resulting from this operation are visible to future "consume" and "acquire" operations.

rw_mem_order_seq_cst 

Ensure that there is a total ordering of operations. This enforces a "happens before" relationship between all operations on the object.

Copyright © 2021 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.