diff options
author | Sree Kuchibhotla <sreek@google.com> | 2018-04-10 11:43:07 -0700 |
---|---|---|
committer | Sree Kuchibhotla <sreek@google.com> | 2018-04-10 11:43:07 -0700 |
commit | 9c142c9dc977062e7f87c29d27248421e1a5a2e7 (patch) | |
tree | b7c160d00844de42031ff139784a462654d5e9e0 /src/core/lib/iomgr/exec_ctx.h | |
parent | 4c8d6fb8f5293e9c74cbc3d3c48488583e19db09 (diff) |
64-bit atomic operations
Diffstat (limited to 'src/core/lib/iomgr/exec_ctx.h')
-rw-r--r-- | src/core/lib/iomgr/exec_ctx.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/lib/iomgr/exec_ctx.h b/src/core/lib/iomgr/exec_ctx.h index 4cc5586aa4..47d257d705 100644 --- a/src/core/lib/iomgr/exec_ctx.h +++ b/src/core/lib/iomgr/exec_ctx.h @@ -22,16 +22,17 @@ #include <grpc/support/port_platform.h> #include <grpc/support/atm.h> +#include <grpc/support/atm64.h> #include <grpc/support/cpu.h> #include <grpc/support/log.h> #include "src/core/lib/gpr/tls.h" #include "src/core/lib/iomgr/closure.h" -typedef int64_t grpc_millis; +typedef gpr_atm64 grpc_millis; -#define GRPC_MILLIS_INF_FUTURE INT64_MAX -#define GRPC_MILLIS_INF_PAST INT64_MIN +#define GRPC_MILLIS_INF_FUTURE GPR_ATM64_MAX +#define GRPC_MILLIS_INF_PAST GPR_ATM64_MIN /** A workqueue represents a list of work to be executed asynchronously. Forward declared here to avoid a circular dependency with workqueue.h. */ |