aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/transport/transport.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-03-22 22:12:15 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-03-22 22:12:15 -0700
commit2c8063cc7200789da67a10c53d98d0d15b1ad378 (patch)
tree63535b33dc626b2b8a2fbb77d03e955b1fdd8a45 /src/core/transport/transport.c
parenta67a83ebde2ab47b230857d47330ac63c7ab62b1 (diff)
Introduce a new memory reclamation scheme for channel stacks
Allows the bottom member of the stack to schedule the actual deallocation, allowing a final transport lock to be entered when destroying a call.
Diffstat (limited to 'src/core/transport/transport.c')
-rw-r--r--src/core/transport/transport.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/transport/transport.c b/src/core/transport/transport.c
index 5b5af0e7d0..b42980431a 100644
--- a/src/core/transport/transport.c
+++ b/src/core/transport/transport.c
@@ -133,8 +133,9 @@ void grpc_transport_set_pollset(grpc_exec_ctx *exec_ctx,
void grpc_transport_destroy_stream(grpc_exec_ctx *exec_ctx,
grpc_transport *transport,
- grpc_stream *stream) {
- transport->vtable->destroy_stream(exec_ctx, transport, stream);
+ grpc_stream *stream, void *and_free_memory) {
+ transport->vtable->destroy_stream(exec_ctx, transport, stream,
+ and_free_memory);
}
char *grpc_transport_get_peer(grpc_exec_ctx *exec_ctx,