cds  2.3.2
cds::container::weak_ringbuffer::traits Struct Reference

WeakRingBuffer default traits More...

#include <cds/container/weak_ringbuffer.h>

Public Types

enum  { padding = opt::cache_line_padding }
 Padding for internal critical atomic data. Default is opt::cache_line_padding.
 
typedef cds::opt::v::uninitialized_dynamic_buffer< void *> buffer
 Buffer type for internal array.
 
typedef cds::opt::v::auto_cleaner value_cleaner
 A functor to clean item dequeued. More...
 
typedef opt::v::relaxed_ordering memory_model
 C++ memory ordering model. More...
 

Detailed Description

WeakRingBuffer default traits

Member Typedef Documentation

◆ memory_model

C++ memory ordering model.

Can be opt::v::relaxed_ordering (relaxed memory model, the default) or opt::v::sequential_consistent (sequentially consistent memory model).

◆ value_cleaner

A functor to clean item dequeued.

The functor calls the destructor for popped element. After a set of items is dequeued, value_cleaner cleans the cells that the items have been occupied. If T is a complex type, value_cleaner may be useful feature. For POD types opt::v::empty_cleaner is suitable

Default value is opt::v::auto_cleaner that calls destructor only if it is not trivial.


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:35 by Doxygen 1.8.13