add blocking region annotations around sigtimedwait

pull/10803/head
Sree Kuchibhotla 8 years ago
parent 93478976b7
commit 2f128f9a0b
  1. 2
      src/core/lib/iomgr/ev_epoll_linux.c

@ -1489,7 +1489,9 @@ static bool acquire_polling_lease(grpc_pollset_worker *worker,
ret = sigwaitinfo(&g_wakeup_sig_set, NULL);
} else {
struct timespec sigwait_timeout = millis_to_timespec(timeout_ms);
GRPC_SCHEDULING_START_BLOCKING_REGION;
ret = sigtimedwait(&g_wakeup_sig_set, NULL, &sigwait_timeout);
GRPC_SCHEDULING_END_BLOCKING_REGION;
}
if (ret == -1) {

Loading…
Cancel
Save