diff options
author | 2018-03-30 20:11:56 -0700 | |
---|---|---|
committer | 2018-04-02 14:51:47 -0700 | |
commit | c069af240b7197cf1b968df29b4206597d719c22 (patch) | |
tree | 137cf2b38b8b55475eaf910acd78f69d6b9877d2 /src/core/lib/iomgr/exec_ctx.h | |
parent | 22054d4a22efd14ac4b103bb3c71576c07f2db19 (diff) |
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 72d0ae58c1..4cc5586aa4 100644 --- a/src/core/lib/iomgr/exec_ctx.h +++ b/src/core/lib/iomgr/exec_ctx.h @@ -28,10 +28,10 @@ #include "src/core/lib/gpr/tls.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. */ |