projects
/
libcds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfix in cds::gc::HP::guarded_ptr
[libcds.git]
/
cds
/
gc
/
impl
/
dhp_decl.h
diff --git
a/cds/gc/impl/dhp_decl.h
b/cds/gc/impl/dhp_decl.h
index 333c6d7985544e54b22ce823414d227181b65b9c..6da2073a658364a0661988b6929052101d157a63 100644
(file)
--- a/
cds/gc/impl/dhp_decl.h
+++ b/
cds/gc/impl/dhp_decl.h
@@
-513,7
+513,7
@@
namespace cds { namespace gc {
/// Checks if the guarded pointer is \p nullptr
bool empty() const CDS_NOEXCEPT
{
/// Checks if the guarded pointer is \p nullptr
bool empty() const CDS_NOEXCEPT
{
- return !m_guard.is_initialized() || m_guard.get() == nullptr;
+ return !m_guard.is_initialized() || m_guard.get(
atomics::memory_order_relaxed
) == nullptr;
}
/// \p bool operator returns <tt>!empty()</tt>
}
/// \p bool operator returns <tt>!empty()</tt>