diff options
author | ncteisen <ncteisen@gmail.com> | 2017-11-10 16:32:40 -0800 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2017-11-10 16:32:40 -0800 |
commit | 05fbb9d13de546560b1fb799cb4b1ff622c47713 (patch) | |
tree | abfad45444dab518c26ff80e5fef3a32ba41bb77 /src | |
parent | 756acb689378ca5170f32c75ce022f2a3b116e76 (diff) |
Fix test compile
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lib/debug/trace.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/lib/debug/trace.h b/src/core/lib/debug/trace.h index 20bb623e78..274849d157 100644 --- a/src/core/lib/debug/trace.h +++ b/src/core/lib/debug/trace.h @@ -61,9 +61,8 @@ class TraceFlag { #endif } - private: - static void List(); - + // Only to be used for testing purposes. Tracers should usually be set using + // the static Set function void set_enabled(bool enabled) { #ifdef GRPC_THREADSAFE_TRACER gpr_atm_no_barrier_store(&value_, enabled); @@ -72,6 +71,9 @@ class TraceFlag { #endif } + private: + static void List(); + static TraceFlag *root_tracer_; TraceFlag *next_tracer_; const char *const name_; |