xref: /aosp_15_r20/external/cronet/base/tracing/tracing_tls.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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