From 3955916ac579002d9970da731441f35237262b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Thu, 17 Aug 2017 20:27:41 +0200 Subject: [PATCH] atomic fix --- libsrc/meshing/meshclass.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index 6e55b845..2bdac6f1 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -351,18 +351,19 @@ namespace netgen */ // add lock-free to list - /* + surfelements[sei].next = facedecoding[el.index-1].firstelement; auto & head = reinterpret_cast&> (facedecoding[el.index-1].firstelement); while (!head.compare_exchange_weak (surfelements[sei].next, sei)) ; - */ + + /* surfelements[sei].next = facedecoding[el.index-1].firstelement; auto & head = reinterpret_cast&> (facedecoding[el.index-1].firstelement); auto & next = reinterpret_cast (surfelements[sei].next); while (!head.compare_exchange_weak (next, sei)) ; - + */ /* if (SurfaceArea().Valid())