mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-28 05:40:34 +05:00
atomic fix
This commit is contained in:
parent
463c564c98
commit
3955916ac5
@ -351,18 +351,19 @@ namespace netgen
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// add lock-free to list
|
// add lock-free to list
|
||||||
/*
|
|
||||||
surfelements[sei].next = facedecoding[el.index-1].firstelement;
|
surfelements[sei].next = facedecoding[el.index-1].firstelement;
|
||||||
auto & head = reinterpret_cast<atomic<SurfaceElementIndex>&> (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))
|
while (!head.compare_exchange_weak (surfelements[sei].next, sei))
|
||||||
;
|
;
|
||||||
*/
|
|
||||||
|
/*
|
||||||
surfelements[sei].next = facedecoding[el.index-1].firstelement;
|
surfelements[sei].next = facedecoding[el.index-1].firstelement;
|
||||||
auto & head = reinterpret_cast<atomic<int>&> (facedecoding[el.index-1].firstelement);
|
auto & head = reinterpret_cast<atomic<int>&> (facedecoding[el.index-1].firstelement);
|
||||||
auto & next = reinterpret_cast<int&> (surfelements[sei].next);
|
auto & next = reinterpret_cast<int&> (surfelements[sei].next);
|
||||||
while (!head.compare_exchange_weak (next, sei))
|
while (!head.compare_exchange_weak (next, sei))
|
||||||
;
|
;
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (SurfaceArea().Valid())
|
if (SurfaceArea().Valid())
|
||||||
|
Loading…
Reference in New Issue
Block a user