|
CNum 0.2.1
CPU-optimized ML library for C++
|
The domain of all hazard pointers. More...
#include <HazardPointer.h>
Public Member Functions | |
| HazardSlot * | acquire_hazard_slot () |
| Acquire ownership of a slot to protect a hazard pointer. | |
| void | release_hazard_slot (HazardSlot *slot) |
| Release ownership of a hazard pointer slot. | |
| void | hazard_slots_gather (::std::vector< void * > &out) |
| Get all active hazard pointer slots. | |
Static Public Member Functions | |
| static HazardPtrDomain * | get_domain () |
| Get a pointer to the instance of the HazardPtrDomain singleton. | |
The domain of all hazard pointers.
| HazardSlot * CNum::DataStructs::HazardPointer::HazardPtrDomain::acquire_hazard_slot | ( | ) |
Acquire ownership of a slot to protect a hazard pointer.
Used by the thread local HazardPtrGuard objects
|
static |
Get a pointer to the instance of the HazardPtrDomain singleton.
| void CNum::DataStructs::HazardPointer::HazardPtrDomain::hazard_slots_gather | ( | ::std::vector< void * > & | out | ) |
Get all active hazard pointer slots.
Used in scan()
| void CNum::DataStructs::HazardPointer::HazardPtrDomain::release_hazard_slot | ( | HazardSlot * | slot | ) |
Release ownership of a hazard pointer slot.
Used by the thread local HazardPtrGuard objects