Cmp read()

in src/ds/aba.h [156:168]


    Cmp read()
    {
      while (lock.test_and_set(std::memory_order_acquire))
        Aal::pause();

#  if !defined(NDEBUG) && !defined(SNMALLOC_DISABLE_ABA_VERIFY)
      if (operation_in_flight)
        error("Only one inflight ABA operation at a time is allowed.");
      operation_in_flight = true;
#  endif

      return Cmp{this};
    }