Tervel
1.0.0
A collection of wait-free containers and algorithms.
|
This class is used to hold a key and value pair. More...
Public Member Functions | |
DataNode (Key k, Value v) | |
~DataNode () | |
bool | is_array () |
bool | is_data () |
Public Member Functions inherited from tervel::containers::wf::HashMap< Key, Value, Functor >::Node | |
Node () | |
virtual | ~Node () |
Public Member Functions inherited from tervel::util::memory::hp::Element | |
Element () | |
virtual | ~Element () |
void | safe_delete (bool no_check=false, ElementList *const element_list=tervel::tl_thread_info->get_hp_element_list()) |
This function is used to free a hazard pointer protected object if it is safe to do so OR add it to a list to be freed later. More... | |
virtual bool | on_watch (std::atomic< void * > *address, void *expected) |
This function is used to achieve a strong watch on an Element. More... | |
virtual bool | on_is_watched () |
This function is used to check a strong watch on an Element. More... | |
virtual void | on_unwatch () |
This function is used to remove a strong watch on an Element. More... | |
Public Attributes | |
Key | key_ |
Value | value_ |
std::atomic< int64_t > | access_count_ |
This class is used to hold a key and value pair.
It is hazard pointer protected.
|
inlineexplicit |
|
inline |
|
inlinevirtual |
Implements tervel::containers::wf::HashMap< Key, Value, Functor >::Node.
|
inlinevirtual |
Implements tervel::containers::wf::HashMap< Key, Value, Functor >::Node.
std::atomic<int64_t> tervel::containers::wf::HashMap< Key, Value, Functor >::DataNode::access_count_ |
Key tervel::containers::wf::HashMap< Key, Value, Functor >::DataNode::key_ |
Value tervel::containers::wf::HashMap< Key, Value, Functor >::DataNode::value_ |