33
Concurrency support library
[thread]
33.11
Safe reclamation
[saferecl]
33.11.3
Hazard pointers
[saferecl.hp]
33.11.3.4
Class
hazard_
pointer
[saferecl.hp.holder]
33.11.3.4.4
Non-member functions
[saferecl.hp.holder.nonmem]
🔗
hazard_pointer make_hazard_pointer
(
)
;
1
#
Effects
: Constructs a hazard pointer
.
2
#
Returns
: A
hazard_
pointer
object that owns the newly-constructed hazard pointer
.
3
#
Throws
: May throw
bad_
alloc
if memory for the hazard pointer could not be allocated
.
🔗
void
swap
(
hazard_pointer
&
a, hazard_pointer
&
b
)
noexcept
;
4
#
Effects
: Equivalent to
a
.
swap
(
b
)
.