cds  2.3.2
cds::opt::memory_model< Type > Struct Template Reference

[type-option] Option setter for C++ memory model More...

#include <cds/opt/options.h>

Detailed Description

template<typename Type>
struct cds::opt::memory_model< Type >

[type-option] Option setter for C++ memory model

The cds library supports following memory ordering constraints for atomic operations in container implementation:

  • v::relaxed_ordering - relaxed C++ memory model. This mode supports full set of memory ordering constraints: memory_order_relaxed, memory_order_acquire, memory_order_release and so on.
  • v::sequential_consistent - sequentially consistent C++ memory model (default memory ordering for C++). In this mode any memory ordering constraint maps to memory_order_seq_cst.

The Type template parameter can be v::relaxed_ordering or v::sequential_consistent.

You may mix different memory ordering options for different containers: one declare as sequentially consistent, another declare as relaxed. Usually, v::relaxed_ordering is the default memory ordering for libcds containers.


The documentation for this struct was generated from the following file:

cds 2.3.2 Developed by Maxim Khizhinsky aka khizmax and other contributors 2007 - 2017
Autogenerated Sun Dec 31 2017 12:10:50 by Doxygen 1.8.13