// Copyright 2017 The Fuchsia Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
#include <lib/trace-engine/instrumentation.h> | |
#include <atomic> | |
namespace { | |
std::atomic_uint64_t g_nonce{1u}; | |
} // namespace | |
__EXPORT uint64_t trace_generate_nonce() { | |
return g_nonce.fetch_add(1u, std::memory_order_relaxed); | |
} |