Poke fd workqueues on add - to unblock a potential starvation issue

pull/3423/head
Craig Tiller 9 years ago
parent 99b65f2261
commit 2d2711f9e6
  1. 1
      src/core/iomgr/pollset_posix.c

@ -145,6 +145,7 @@ void grpc_pollset_add_fd(grpc_pollset *pollset, grpc_fd *fd) {
}
gpr_mu_lock(&pollset->mu);
pollset->vtable->add_fd(pollset, fd, 1);
grpc_workqueue_flush(fd->workqueue, 0);
/* the following (enabled only in debug) will reacquire and then release
our lock - meaning that if the unlocking flag passed to del_fd above is
not respected, the code will deadlock (in a way that we have a chance of

Loading…
Cancel
Save