cds
2.3.2
|
Metafunction converting option list to msqueue::traits
.
More...
#include <cds/intrusive/msqueue.h>
Public Types | |
typedef implementation_defined | type |
Metafunction result. | |
Metafunction converting option list to msqueue::traits
.
Supported Options
are:
opt::hook
- hook used. Possible hooks are: msqueue::base_hook
, msqueue::member_hook
, msqueue::traits_hook
. If the option is not specified, msqueue::base_hook<>
is used.opt::back_off
- back-off strategy used, default is cds::backoff::empty
.opt::disposer
- the functor used for dispose removed items. Default is opt::v::empty_disposer
. This option is used when dequeuing.opt::link_checker
- the type of node's link fields checking. Default is opt::debug_check_link
opt::item_counter
- the type of item counting feature. Default is cds::atomicity::empty_item_counter
(item counting disabled) To enable item counting use cds::atomicity::item_counter
opt::stat
- the type to gather internal statistics. Possible statistics types are: msqueue::stat
, msqueue::empty_stat
, user-provided class that supports msqueue::stat
interface. Default is msqueue::empty_stat
(internal statistics disabled).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 MSQueue
with item counting and internal statistics