[TSan] Fixed data race (?) to satisfy TSan
[libcds.git] / cds / gc / details / hp.h
index 84c7702051d2fa982e919cc4e5a7c12fc12534f0..83a8bc5ce3f8afd3b2aa164a659bf5655b94f62b 100644 (file)
@@ -292,7 +292,7 @@ namespace cds {
             /// Internal list of cds::gc::hp::details::hp_record
             struct hplist_node : public details::hp_record
             {
-                hplist_node *                    m_pNextNode; ///< next hazard ptr record in list
+                atomics::atomic<hplist_node*>    m_pNextNode; ///< next hazard ptr record in list
                 atomics::atomic<OS::ThreadId>    m_idOwner;   ///< Owner thread id; 0 - the record is free (not owned)
                 atomics::atomic<bool>            m_bFree;     ///< true if record is free (not owned)