diff options
author | Muxi Yan <mxyan@google.com> | 2018-10-01 13:11:29 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-10-01 14:08:56 -0700 |
commit | beec2c6ba3f5f789b92a684ff823790f1d63762a (patch) | |
tree | 42e1dfa72496c15b1889cd952731cb4c63c7e896 /src | |
parent | bcaf46ea1801f5d6b328bef69102643f8beb742d (diff) |
Add alias for macro for internal app
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lib/gpr/sync_posix.cc | 8 | ||||
-rw-r--r-- | src/core/lib/iomgr/timer_manager.cc | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/core/lib/gpr/sync_posix.cc b/src/core/lib/gpr/sync_posix.cc index b6eb0b68ce..6d0a427939 100644 --- a/src/core/lib/gpr/sync_posix.cc +++ b/src/core/lib/gpr/sync_posix.cc @@ -28,6 +28,14 @@ #include "src/core/lib/profiling/timers.h" // For debug of the timer manager crash only. +#ifndef kGMS_BuildConfig_EnableGRPCTimerCrashDebug +#define kGMS_BuildConfig_EnableGRPCTimerCrashDebug() GRPC_DEBUG_TIMER_MANAGER +#endif +#ifndef kBuildConfig_EnableGRPCTimerCrashDebug +#define kBuildConfig_EnableGRPCTimerCrashDebug() GRPC_DEBUG_TIMER_MANAGER +#endif + +// For debug of the timer manager crash only. // TODO (mxyan): remove after bug is fixed. #ifdef GRPC_DEBUG_TIMER_MANAGER void (*g_grpc_debug_timer_manager_stats)( diff --git a/src/core/lib/iomgr/timer_manager.cc b/src/core/lib/iomgr/timer_manager.cc index eaba05a5ce..4a06790b3d 100644 --- a/src/core/lib/iomgr/timer_manager.cc +++ b/src/core/lib/iomgr/timer_manager.cc @@ -62,6 +62,14 @@ static uint64_t g_timed_waiter_generation; static void timer_thread(void* completed_thread_ptr); // For debug of the timer manager crash only. +#ifndef kGMS_BuildConfig_EnableGRPCTimerCrashDebug +#define kGMS_BuildConfig_EnableGRPCTimerCrashDebug() GRPC_DEBUG_TIMER_MANAGER +#endif +#ifndef kBuildConfig_EnableGRPCTimerCrashDebug +#define kBuildConfig_EnableGRPCTimerCrashDebug() GRPC_DEBUG_TIMER_MANAGER +#endif + +// For debug of the timer manager crash only. // TODO (mxyan): remove after bug is fixed. #ifdef GRPC_DEBUG_TIMER_MANAGER extern int64_t g_timer_manager_init_count; |