Skip to content
Snippets Groups Projects
Commit 98bf7e65 authored by Craig Tiller's avatar Craig Tiller
Browse files

Added comments

parent 949b6ee7
No related branches found
No related tags found
No related merge requests found
...@@ -43,8 +43,12 @@ typedef struct call_data { ...@@ -43,8 +43,12 @@ typedef struct call_data {
int got_initial_metadata; int got_initial_metadata;
grpc_stream_op_buffer *recv_ops; grpc_stream_op_buffer *recv_ops;
grpc_iomgr_closure *on_done_recv;
/** Closure to call when finished with the hc_on_recv hook */
grpc_iomgr_closure *on_done_recv;
/** Receive closures are chained: we inject this closure as the on_done_recv
up-call on transport_op, and remember to call our on_done_recv member
after handling it. */
grpc_iomgr_closure hc_on_recv; grpc_iomgr_closure hc_on_recv;
} call_data; } call_data;
......
...@@ -47,7 +47,11 @@ typedef struct call_data { ...@@ -47,7 +47,11 @@ typedef struct call_data {
grpc_linked_mdelem status; grpc_linked_mdelem status;
grpc_stream_op_buffer *recv_ops; grpc_stream_op_buffer *recv_ops;
/** Closure to call when finished with the hs_on_recv hook */
grpc_iomgr_closure *on_done_recv; grpc_iomgr_closure *on_done_recv;
/** Receive closures are chained: we inject this closure as the on_done_recv
up-call on transport_op, and remember to call our on_done_recv member
after handling it. */
grpc_iomgr_closure hs_on_recv; grpc_iomgr_closure hs_on_recv;
} call_data; } call_data;
......
...@@ -73,6 +73,8 @@ void grpc_iomgr_shutdown(void); ...@@ -73,6 +73,8 @@ void grpc_iomgr_shutdown(void);
* Can be called from within a callback or from anywhere else */ * Can be called from within a callback or from anywhere else */
void grpc_iomgr_add_callback(grpc_iomgr_closure *closure); void grpc_iomgr_add_callback(grpc_iomgr_closure *closure);
/** As per grpc_iomgr_add_callback, with the ability to set the success
argument. */
void grpc_iomgr_add_delayed_callback(grpc_iomgr_closure *iocb, int success); void grpc_iomgr_add_delayed_callback(grpc_iomgr_closure *iocb, int success);
#endif /* GRPC_INTERNAL_CORE_IOMGR_IOMGR_H */ #endif /* GRPC_INTERNAL_CORE_IOMGR_IOMGR_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment