cds  2.3.2
cds::intrusive::optimistic_queue::traits Struct Reference

OptimisticQueue default type traits More...

#include <cds/intrusive/optimistic_queue.h>

Public Types

enum  { padding = opt::cache_line_padding }
 Padding for internal critical atomic data. Default is opt::cache_line_padding.
 
typedef cds::backoff::empty back_off
 Back-off strategy.
 
typedef optimistic_queue::base_hook hook
 Hook, possible types are optimistic_queue::base_hook, optimistic_queue::member_hook, optimistic_queue::traits_hook.
 
typedef opt::v::empty_disposer disposer
 The functor used for dispose removed items. Default is opt::v::empty_disposer. This option is used for dequeuing.
 
typedef cds::atomicity::empty_item_counter item_counter
 Item counting feature; by default, disabled. Use cds::atomicity::item_counter to enable item counting.
 
typedef opt::v::relaxed_ordering memory_model
 C++ memory ordering model. More...
 
typedef optimistic_queue::empty_stat stat
 Internal statistics (by default, disabled) More...
 

Static Public Attributes

static constexpr const opt::link_check_type link_checker = opt::debug_check_link
 Link checking, see cds::opt::link_checker.
 

Detailed Description

OptimisticQueue default type 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 consisnent memory model).

◆ stat

Internal statistics (by default, disabled)

Possible option value are: optimistic_queue::stat, optimistic_queue::empty_stat (the default), user-provided class that supports optimistic_queue::stat interface.


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