Skip to content

Thread-safe ancestors/descendants

Dominik Muller requested to merge dmuller/HepMC3:relatives_threadsafe into master

Declares the ancestors and descendants static functors thread-local. Due to the internal cache which remembers particles already passed to avoid duplicates, they cannot currently be used concurrently by multiple threads. As an alternative, the internal std::vector could be declared as an instance and thread-local member to hide this complexity.

Merge request reports