chromium/third_party/openscreen/src/platform/base/trace_logging_activation.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "platform/base/trace_logging_activation.h"

#include <atomic>
#include <cassert>
#include <thread>

namespace openscreen {

namespace {

// If tracing is active, this is a valid pointer to an object that implements
// the TraceLoggingPlatform interface. If tracing is not active, this is
// nullptr.
std::atomic<TraceLoggingPlatform*> g_current_destination{};

// The count of threads currently calling into the current TraceLoggingPlatform.
std::atomic<int> g_use_count{};

inline TraceLoggingPlatform* PinCurrentDestination() {}

inline void UnpinCurrentDestination() {}

}  // namespace

void StartTracing(TraceLoggingPlatform* destination) {}

void StopTracing() {}

CurrentTracingDestination::CurrentTracingDestination()
    :{}

CurrentTracingDestination::~CurrentTracingDestination() {}

}  // namespace openscreen