Fixing potential hitch in iomgr shutdown.

The background_callback_executor may sit on the condition as well. If we're not broadcasting the condition, it may eat the condition signal, and starve the shutdown sequence of it.
pull/371/head
Nicolas "Pixel" Noble 10 years ago
parent 8c0596edca
commit decdff921b
  1. 2
      src/core/iomgr/iomgr.c

@ -143,7 +143,7 @@ void grpc_iomgr_ref(void) {
void grpc_iomgr_unref(void) {
gpr_mu_lock(&g_mu);
if (0 == --g_refs) {
gpr_cv_signal(&g_cv);
grpc_kick_poller();
}
gpr_mu_unlock(&g_mu);
}

Loading…
Cancel
Save