diff options
author | 2015-07-06 16:35:27 -0700 | |
---|---|---|
committer | 2015-07-06 16:35:27 -0700 | |
commit | fc8c8dcc328f3fc45ca922d31e6880d90bd1f0da (patch) | |
tree | b85f98aca74b938310be0b355369320e8b5495e5 /src/core/surface | |
parent | cd54c60c084010012460b80918861b1463797b64 (diff) | |
parent | cae5bf586f122871111229ace6a86dcdb8214e45 (diff) |
Merge pull request #2293 from ctiller/pack-your-bags
Structure repacking and sizing
Diffstat (limited to 'src/core/surface')
-rw-r--r-- | src/core/surface/call.c | 8 | ||||
-rw-r--r-- | src/core/surface/call.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/core/surface/call.c b/src/core/surface/call.c index 181617fff8..f6aeed856b 100644 --- a/src/core/surface/call.c +++ b/src/core/surface/call.c @@ -76,14 +76,14 @@ typedef struct { typedef struct { /* Overall status of the operation: starts OK, may degrade to non-OK */ - int success; - /* Completion function to call at the end of the operation */ - grpc_ioreq_completion_func on_complete; - void *user_data; + gpr_uint8 success; /* a bit mask of which request ops are needed (1u << opid) */ gpr_uint16 need_mask; /* a bit mask of which request ops are now completed */ gpr_uint16 complete_mask; + /* Completion function to call at the end of the operation */ + grpc_ioreq_completion_func on_complete; + void *user_data; } reqinfo_master; /* Status data for a request can come from several sources; this diff --git a/src/core/surface/call.h b/src/core/surface/call.h index fb3662b50d..3b6f9c942e 100644 --- a/src/core/surface/call.h +++ b/src/core/surface/call.h @@ -78,8 +78,8 @@ typedef union { typedef struct { grpc_ioreq_op op; - grpc_ioreq_data data; gpr_uint32 flags; /**< A copy of the write flags from grpc_op */ + grpc_ioreq_data data; } grpc_ioreq; typedef void (*grpc_ioreq_completion_func)(grpc_call *call, int success, |