diff options
author | 2017-03-16 16:25:12 -0700 | |
---|---|---|
committer | 2017-03-16 16:25:12 -0700 | |
commit | 7b2dd93362099eef75b49fe33b93692bb148b93f (patch) | |
tree | 550d87c1a8ba64d4728e1a00bc97ac35686c32a0 /include/grpc/impl/codegen/atm_gcc_atomic.h | |
parent | da73580d2c61134529d31651cc18584ac5924227 (diff) |
Track milliseconds since process start in timer heap
Allows reducing a lock-then-check to an atomic load and check on the
fast path of timer checks.
Reduces locks per RPC by about 5.
Diffstat (limited to 'include/grpc/impl/codegen/atm_gcc_atomic.h')
-rw-r--r-- | include/grpc/impl/codegen/atm_gcc_atomic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/grpc/impl/codegen/atm_gcc_atomic.h b/include/grpc/impl/codegen/atm_gcc_atomic.h index 4bd3b25741..c8832419df 100644 --- a/include/grpc/impl/codegen/atm_gcc_atomic.h +++ b/include/grpc/impl/codegen/atm_gcc_atomic.h @@ -39,6 +39,7 @@ #include <grpc/impl/codegen/port_platform.h> typedef intptr_t gpr_atm; +#define GPR_ATM_MAX INTPTR_MAX #ifdef GPR_LOW_LEVEL_COUNTERS extern gpr_atm gpr_counter_atm_cas; |