atomic fix

This commit is contained in:
Joachim Schöberl 2017-08-17 20:27:41 +02:00
parent 463c564c98
commit 3955916ac5

View File

@ -351,18 +351,19 @@ namespace netgen
*/
// add lock-free to list
/*
surfelements[sei].next = facedecoding[el.index-1].firstelement;
auto & head = reinterpret_cast<atomic<SurfaceElementIndex>&> (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<atomic<int>&> (facedecoding[el.index-1].firstelement);
auto & next = reinterpret_cast<int&> (surfelements[sei].next);
while (!head.compare_exchange_weak (next, sei))
;
*/
/*
if (SurfaceArea().Valid())