cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
toolbox::container::detail::HPRec Struct Reference

危险指针记录结构体 (Hazard Pointer Record structure) More...

#include <lock_free_queue.hpp>

Public Member Functions

 HPRec ()
 构造函数 (Constructor)
 

Public Attributes

std::atomic< std::thread::id > owner_thread_id
 
std::atomic< void * > hazard_pointers [MAX_HAZARD_POINTERS_PER_THREAD]
 
HPRecnext
 

Detailed Description

危险指针记录结构体 (Hazard Pointer Record structure)

Constructor & Destructor Documentation

◆ HPRec()

toolbox::container::detail::HPRec::HPRec ( )
inline

构造函数 (Constructor)

初始化一个未被占用的危险指针记录 (Initializes an unowned hazard pointer record)

Examples
/home/runner/work/cpp-toolbox/cpp-toolbox/src/include/cpp-toolbox/container/lock_free_queue.hpp.

Member Data Documentation

◆ hazard_pointers

◆ next

HPRec* toolbox::container::detail::HPRec::next

◆ owner_thread_id

std::atomic<std::thread::id> toolbox::container::detail::HPRec::owner_thread_id

The documentation for this struct was generated from the following file: