inline void add_double()

in spectator/stateful_meters.h [12:18]


inline void add_double(std::atomic<double>* n, double delta) {
  double current;
  do {
    current = n->load(std::memory_order_relaxed);
  } while (!n->compare_exchange_weak(
      current, n->load(std::memory_order_relaxed) + delta));
}