blob: 74534c72d2bf6b8f5f3088b65206847ddccd3209 [file] [log] [blame]
// 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);
}