diff options
author | Craig Tiller <ctiller@google.com> | 2015-09-15 16:16:06 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-09-15 16:16:06 -0700 |
commit | 47a708e252c8f56091c11e63eadba51a995ca7c8 (patch) | |
tree | 828e949d82a3f965ac36b4eb3475aa3c96c8c83e /src/core/transport/chttp2 | |
parent | 97419e4e7d6e404e81ef364767909944e5331ee3 (diff) |
Core compiles with workqueues
Diffstat (limited to 'src/core/transport/chttp2')
-rw-r--r-- | src/core/transport/chttp2/frame_ping.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/transport/chttp2/frame_ping.c b/src/core/transport/chttp2/frame_ping.c index 05451c7a8a..10d1e0a523 100644 --- a/src/core/transport/chttp2/frame_ping.c +++ b/src/core/transport/chttp2/frame_ping.c @@ -89,7 +89,9 @@ grpc_chttp2_parse_error grpc_chttp2_ping_parser_parse( for (ping = transport_parsing->pings.next; ping != &transport_parsing->pings; ping = ping->next) { if (0 == memcmp(p->opaque_8bytes, ping->id, 8)) { - grpc_iomgr_add_delayed_callback(ping->on_recv, 1); + /* we know no locks are held here, we may as well just call up + * directly */ + ping->on_recv->cb(ping->on_recv->cb_arg, 1); } ping->next->prev = ping->prev; ping->prev->next = ping->next; |