Changed thread_safe_append() to require a value argument, and re-arranged create_fission_sites() in physics.cpp and physics_mg.cpp to use the new interface.

This commit is contained in:
John Tramm 2020-01-29 02:07:02 +00:00
parent 18b1166e67
commit 76e58e7b4c
3 changed files with 49 additions and 51 deletions

View file

@ -69,7 +69,7 @@ public:
//! \return The index in the array written to. In the event that this
//! index would be greater than what was allocated for the container,
//! return -1.
int64_t thread_safe_append(const T& value = {})
int64_t thread_safe_append(const T& value)
{
// Atomically capture the index we want to write to
int64_t idx;