diff options
author | Sree Kuchibhotla <sreecha@users.noreply.github.com> | 2018-05-22 12:33:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-22 12:33:19 -0700 |
commit | 4a7a39fab6f32e51f6e3ff249860f833cad73bbf (patch) | |
tree | c01ecbd677dd5441b11af3f7c6d43b7e13c0452d /src/core/lib/iomgr/exec_ctx.h | |
parent | 463e4d56193bbaec3977ce38fb8f0103d006794e (diff) | |
parent | a2171d49bfacc2a9f364a17ee50c6d89767cdb6c (diff) |
Merge pull request #14894 from sreecha/fix-time
Fix grpc_millis type (timers are broken on 32-bit systems otherwise)
Diffstat (limited to 'src/core/lib/iomgr/exec_ctx.h')
-rw-r--r-- | src/core/lib/iomgr/exec_ctx.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/lib/iomgr/exec_ctx.h b/src/core/lib/iomgr/exec_ctx.h index 8823dc4b51..cf1118a003 100644 --- a/src/core/lib/iomgr/exec_ctx.h +++ b/src/core/lib/iomgr/exec_ctx.h @@ -29,10 +29,10 @@ #include "src/core/lib/gprpp/fork.h" #include "src/core/lib/iomgr/closure.h" -typedef gpr_atm grpc_millis; +typedef int64_t grpc_millis; -#define GRPC_MILLIS_INF_FUTURE GPR_ATM_MAX -#define GRPC_MILLIS_INF_PAST GPR_ATM_MIN +#define GRPC_MILLIS_INF_FUTURE INT64_MAX +#define GRPC_MILLIS_INF_PAST INT64_MIN /** A workqueue represents a list of work to be executed asynchronously. Forward declared here to avoid a circular dependency with workqueue.h. */ |