diff options
author | Yash Tibrewal <yashkt@google.com> | 2018-04-26 14:31:45 -0700 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2018-05-01 16:59:45 -0700 |
commit | eaddd597d75cbf05835318b8d047654eb8b37e72 (patch) | |
tree | 63807fdc546b816b649c3a59375085ff444d1300 /src/core/lib/iomgr/tcp_posix.cc | |
parent | 83601d6b4b197867f90a9861a2d806c86dd6a967 (diff) |
Add combiner_run to run closures immediately if we already have the combiner lock
Diffstat (limited to 'src/core/lib/iomgr/tcp_posix.cc')
-rw-r--r-- | src/core/lib/iomgr/tcp_posix.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/tcp_posix.cc b/src/core/lib/iomgr/tcp_posix.cc index 153be05e83..b79ffe20f1 100644 --- a/src/core/lib/iomgr/tcp_posix.cc +++ b/src/core/lib/iomgr/tcp_posix.cc @@ -366,7 +366,7 @@ static void call_read_cb(grpc_tcp* tcp, grpc_error* error) { tcp->read_cb = nullptr; tcp->incoming_buffer = nullptr; - GRPC_CLOSURE_RUN(cb, error); + GRPC_CLOSURE_SCHED(cb, error); } #define MAX_READ_IOVEC 4 @@ -629,7 +629,7 @@ static void tcp_handle_write(void* arg /* grpc_tcp */, grpc_error* error) { gpr_log(GPR_INFO, "write: %s", str); } - GRPC_CLOSURE_RUN(cb, error); + GRPC_CLOSURE_SCHED(cb, error); TCP_UNREF(tcp, "write"); } } |