cds
2.3.2
|
Metafunction converting option list to weak_ringbuffer::traits
.
More...
#include <cds/container/weak_ringbuffer.h>
Public Types | |
typedef implementation_defined | type |
Metafunction result. | |
Metafunction converting option list to weak_ringbuffer::traits
.
Supported Options
are:
opt::buffer
- an uninitialized buffer type for internal cyclic array. Possible types are: opt::v::uninitialized_dynamic_buffer
(the default), opt::v::uninitialized_static_buffer
. The type of element in the buffer is not important: it will be changed via rebind
metafunction.opt::value_cleaner
- a functor to clean items dequeued. The functor calls the destructor for ring-buffer item. 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
can be an useful feature. Default value is opt::v::empty_cleaner that is suitable for POD types.opt::padding
- padding for internal critical atomic data. Default is opt::cache_line_padding
opt::memory_model
- C++ memory ordering model. Can be opt::v::relaxed_ordering
(relaxed memory model, the default) or opt::v::sequential_consistent
(sequentially consisnent memory model).Example: declare WeakRingBuffer
with static iternal buffer for 1024 objects: