projects
/
libcds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace NULL with nullptr
[libcds.git]
/
cds
/
gc
/
hzp
/
details
/
hp_alloc.h
diff --git
a/cds/gc/hzp/details/hp_alloc.h
b/cds/gc/hzp/details/hp_alloc.h
index 7d9d5f15d3c939e9f0bb67c4b5806ac83892f551..40561fba0f491fd8d7fb9d7b27d9ab0a2e379365 100644
(file)
--- a/
cds/gc/hzp/details/hp_alloc.h
+++ b/
cds/gc/hzp/details/hp_alloc.h
@@
-56,6
+56,14
@@
namespace cds {
return p;
}
return p;
}
+ //@cond
+ std::nullptr_t operator=( std::nullptr_t ) CDS_NOEXCEPT
+ {
+ clear();
+ return nullptr;
+ }
+ //@endcond
+
/// Returns current value of hazard pointer
/**
Loading has acquire semantics
/// Returns current value of hazard pointer
/**
Loading has acquire semantics
@@
-159,7
+167,7
@@
namespace cds {
return m_arr[nIndex];
}
return m_arr[nIndex];
}
- /// Clears (sets to
NULL
) hazard pointer \p nIndex
+ /// Clears (sets to
\p nullptr
) hazard pointer \p nIndex
void clear( size_t nIndex ) CDS_NOEXCEPT
{
assert( nIndex < capacity() );
void clear( size_t nIndex ) CDS_NOEXCEPT
{
assert( nIndex < capacity() );