1 // Copyright 2021 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef BASE_TRACING_TRACING_TLS_H_ 6 #define BASE_TRACING_TRACING_TLS_H_ 7 8 #include "base/base_export.h" 9 10 namespace base { 11 namespace tracing { 12 13 // Returns a thread-local flag that records whether the calling thread is 14 // running trace event related code. This is used to avoid writing trace events 15 // re-entrantly. 16 BASE_EXPORT bool* GetThreadIsInTraceEvent(); 17 18 } // namespace tracing 19 } // namespace base 20 21 #endif // BASE_TRACING_TRACING_TLS_H_ 22