险象指针句柄
更多...
#include <hazard_ptr.hpp>
险象指针句柄
险象指针管理类,自动获取和释放记录。
在文件 hazard_ptr.hpp 第 315 行定义.
◆ hazard_pointer()
◆ ~hazard_pointer()
| hazard_pointer::~hazard_pointer |
( |
| ) |
|
|
inline |
◆ operator bool()
| hazard_pointer::operator bool |
( |
| ) |
const |
|
inlineexplicitnoexcept |
◆ protect()
template<typename T>
| T * hazard_pointer::protect |
( |
const atomic< T * > & | src | ) |
|
|
inline |
◆ reset_protection()
| void hazard_pointer::reset_protection |
( |
| ) |
|
|
inlinenoexcept |
◆ swap()
◆ try_protect()
template<typename T>
| bool hazard_pointer::try_protect |
( |
T *& | ptr, |
|
|
const atomic< T * > & | src ) |
|
inline |
该类的文档由以下文件生成: