|
cds
2.3.2
|
Metafunction converting option list to basket_queue::traits.
More...
#include <cds/intrusive/basket_queue.h>
Public Types | |
| typedef implementation_defined | type |
| Metafunction result. | |
Metafunction converting option list to basket_queue::traits.
Supported Options are:
opt::hook - hook used. Possible hooks are: basket_queue::base_hook, basket_queue::member_hook, basket_queue::traits_hook. If the option is not specified, basket_queue::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: basket_queue::stat, basket_queue::empty_stat, user-provided class that supports basket_queue::stat interface. Default is basket_queue::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 BasketQueue with item counting and internal statistics