//$$CDS-header$$
-#ifndef __CDS_INTRUSIVE_DETAILS_SINGLE_LINK_STRUCT_H
-#define __CDS_INTRUSIVE_DETAILS_SINGLE_LINK_STRUCT_H
+#ifndef CDSLIB_INTRUSIVE_DETAILS_SINGLE_LINK_STRUCT_H
+#define CDSLIB_INTRUSIVE_DETAILS_SINGLE_LINK_STRUCT_H
#include <cds/intrusive/details/base.h>
#include <cds/gc/default_gc.h>
atomic_node_ptr m_pNext ; ///< pointer to the next node in the container
- node()
- : m_pNext( nullptr )
- {}
+ node() CDS_NOEXCEPT
+ {
+ m_pNext.store( nullptr, atomics::memory_order_release );
+ }
};
//@cond
-#endif // #ifndef __CDS_INTRUSIVE_DETAILS_SINGLE_LINK_STRUCT_H
+#endif // #ifndef CDSLIB_INTRUSIVE_DETAILS_SINGLE_LINK_STRUCT_H