Skip to content

Commit

Permalink
Merge pull request grpc#5686 from soltanmm/gills
Browse files Browse the repository at this point in the history
Release GIL in queue __dealloc__
  • Loading branch information
soltanmm committed Mar 10, 2016
2 parents 6387add + 1f646dc commit 40ed554
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ cdef class CompletionQueue:
grpc_completion_queue_shutdown(self.c_completion_queue)
# Pump the queue
while not self.is_shutdown:
event = grpc_completion_queue_next(
self.c_completion_queue, c_deadline, NULL)
with nogil:
event = grpc_completion_queue_next(
self.c_completion_queue, c_deadline, NULL)
self._interpret_event(event)
grpc_completion_queue_destroy(self.c_completion_queue)

0 comments on commit 40ed554

Please sign in to comment.