xenium
policy.hpp
1 //
2 // Copyright (c) 2018-2020 Manuel Pöter.
3 // Licensed under the MIT License. See LICENSE file in the project root for full license information.
4 //
5 
6 #ifndef XENIUM_POLICY_HPP
7 #define XENIUM_POLICY_HPP
8 
9 #include <cstdint>
10 
11 namespace xenium::policy {
12 
24 template <class Reclaimer>
25 struct reclaimer;
26 
38 template <class Backoff>
39 struct backoff;
40 
49 template <class Backoff>
50 struct compare;
51 
60 template <std::size_t Value>
61 struct capacity;
62 
72 template <class Container>
73 struct container;
74 
84 template <class T>
85 struct hash;
86 
95 template <class T>
97 
102 template <unsigned Value>
104 
115 template <unsigned Value>
117 
123 template <unsigned Value>
124 struct pop_retries;
125 } // namespace xenium::policy
126 #endif
xenium::policy::compare
Policy to configure the comparison function.
Definition: policy.hpp:50
xenium::policy::backoff
Policy to configure the backoff strategy.
Definition: policy.hpp:39
xenium::policy::entries_per_node
Policy to configure the number of entries per allocated node in ramalhete_queue.
Definition: policy.hpp:103
xenium::policy::hash
Policy to configure the hash function.
Definition: policy.hpp:85
xenium::policy::container
Policy to configure the internal container type of some data structures.
Definition: policy.hpp:73
xenium::policy::allocation_strategy
Policy to configure the allocation strategy.
Definition: policy.hpp:96
xenium::policy::capacity
Policy to configure the capacity of various containers.
Definition: policy.hpp:61
xenium::policy::padding_bytes
Policy to configure the number of padding bytes to add to each entry in kirsch_kfifo_queue and kirsch...
Definition: policy.hpp:116
xenium::policy::pop_retries
Policy to configure the number of iterations to spin on a queue entry while waiting for a pending pus...
Definition: policy.hpp:124
xenium::policy::reclaimer
Policy to configure the reclamation scheme to be used.
Definition: policy.hpp:25