#include "platform/base/trace_logging_activation.h"
#include <atomic>
#include <cassert>
#include <thread>
namespace openscreen {
namespace {
std::atomic<TraceLoggingPlatform*> g_current_destination{ … };
std::atomic<int> g_use_count{ … };
inline TraceLoggingPlatform* PinCurrentDestination() { … }
inline void UnpinCurrentDestination() { … }
}
void StartTracing(TraceLoggingPlatform* destination) { … }
void StopTracing() { … }
CurrentTracingDestination::CurrentTracingDestination()
: … { … }
CurrentTracingDestination::~CurrentTracingDestination() { … }
}