Skip to content

Commit

Permalink
Further fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller committed May 5, 2015
1 parent 667ca40 commit 9eb47ad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
6 changes: 2 additions & 4 deletions include/grpc/grpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,7 @@ grpc_completion_queue *grpc_completion_queue_create(void);

/* Blocks until an event is available, the completion queue is being shut down,
or deadline is reached. Returns NULL on timeout, otherwise the event that
occurred. Callers should call grpc_event_finish once they have processed
the event.
occurred.
Callers must not call grpc_completion_queue_next and
grpc_completion_queue_pluck simultaneously on the same completion queue. */
Expand All @@ -345,8 +344,7 @@ grpc_event grpc_completion_queue_next(grpc_completion_queue *cq,

/* Blocks until an event with tag 'tag' is available, the completion queue is
being shutdown or deadline is reached. Returns NULL on timeout, or a pointer
to the event that occurred. Callers should call grpc_event_finish once they
have processed the event.
to the event that occurred.
Callers must not call grpc_completion_queue_next and
grpc_completion_queue_pluck simultaneously on the same completion queue. */
Expand Down
11 changes: 0 additions & 11 deletions src/core/surface/completion_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,6 @@ void grpc_cq_internal_unref(grpc_completion_queue *cc);
shutdown until a corrensponding grpc_cq_end_* call is made */
void grpc_cq_begin_op(grpc_completion_queue *cc, grpc_call *call);

/* grpc_cq_end_* functions pair with a grpc_cq_begin_op
grpc_cq_end_* common arguments:
cc - the completion channel to queue on
tag - the user supplied operation tag
on_finish - grpc_event_finish_func that is called during grpc_event_finish
can be NULL to not get a callback
user_data - user_data parameter to be passed to on_finish
Other parameters match the data member of grpc_event */

/* Queue a GRPC_OP_COMPLETED operation */
void grpc_cq_end_op(grpc_completion_queue *cc, void *tag, grpc_call *call,
int success);
Expand Down
1 change: 0 additions & 1 deletion src/python/src/grpc/_adapter/_completion_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ static PyObject *pygrpc_completion_queue_get(CompletionQueue *self,
if (tag) {
pygrpc_tag_destroy(tag);
}
grpc_event_finish(c_event);

return event;
}
Expand Down

0 comments on commit 9eb47ad

Please sign in to comment.