← Back to team overview

yade-dev team mailing list archive

Re: Energy tracing vs. multithread?

 

> What will happen if two threads increment the value at the same time?
Pretty much random things (garbage, not incremented, etc), depending on
atomicity of reads/writes. There is OpenMPAcuumulator template for this
purpose, used e.g. for unbalanced force callback.

Cheers, v.





Follow ups

References