X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=blobdiff_plain;f=cds%2Fgc%2Fimpl%2Fdhp_decl.h;h=6da2073a658364a0661988b6929052101d157a63;hp=333c6d7985544e54b22ce823414d227181b65b9c;hb=e9fda6acf3c6a28fb822cfe85d784682eb8dbbe0;hpb=6ea0026d2fa15c062d315a73892100d132a362ec diff --git a/cds/gc/impl/dhp_decl.h b/cds/gc/impl/dhp_decl.h index 333c6d79..6da2073a 100644 --- 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 { - 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 !empty()