Merge pull request #18277 from lidizheng/nogil-unref

Remove GIL for grpc_call_unref
reviewable/pr18052/r5^2
Lidi Zheng 6 years ago committed by GitHub
commit c73c724778
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/python/grpcio/grpc/_cython/_cygrpc/call.pyx.pxi

@ -85,9 +85,10 @@ cdef class Call:
return result
def __dealloc__(self):
if self.c_call != NULL:
grpc_call_unref(self.c_call)
grpc_shutdown_blocking()
with nogil:
if self.c_call != NULL:
grpc_call_unref(self.c_call)
grpc_shutdown_blocking()
# The object *should* always be valid from Python. Used for debugging.
@property

Loading…
Cancel
Save