Merge pull request #2293 from ctiller/pack-your-bags
Structure repacking and sizing
This commit is contained in:
commit
fc8c8dcc32
|
|
@ -41,9 +41,9 @@
|
|||
typedef struct grpc_alarm {
|
||||
gpr_timespec deadline;
|
||||
gpr_uint32 heap_index; /* INVALID_HEAP_INDEX if not in heap */
|
||||
int triggered;
|
||||
struct grpc_alarm *next;
|
||||
struct grpc_alarm *prev;
|
||||
int triggered;
|
||||
grpc_iomgr_cb_func cb;
|
||||
void *cb_arg;
|
||||
} grpc_alarm;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
#include "src/core/transport/metadata.h"
|
||||
|
||||
/* this many stream ops are inlined into a sopb before allocating */
|
||||
#define GRPC_SOPB_INLINE_ELEMENTS 16
|
||||
#define GRPC_SOPB_INLINE_ELEMENTS 4
|
||||
|
||||
/* Operations that can be performed on a stream.
|
||||
Used by grpc_stream_op. */
|
||||
|
|
|
|||
Loading…
Reference in New Issue