Remove blocking annotations

pull/11866/head
Craig Tiller 7 years ago
parent 168fc97045
commit dbff5a23fe
  1. 3
      src/core/lib/support/time_posix.c
  2. 3
      src/core/lib/support/time_windows.c

@ -30,7 +30,6 @@
#include <grpc/support/atm.h>
#include <grpc/support/log.h>
#include <grpc/support/time.h>
#include "src/core/lib/iomgr/block_annotate.h"
static struct timespec timespec_from_gpr(gpr_timespec gts) {
struct timespec rv;
@ -157,9 +156,7 @@ void gpr_sleep_until(gpr_timespec until) {
delta = gpr_time_sub(until, now);
delta_ts = timespec_from_gpr(delta);
GRPC_SCHEDULING_START_BLOCKING_REGION;
ns_result = nanosleep(&delta_ts, NULL);
GRPC_SCHEDULING_END_BLOCKING_REGION_NO_EXEC_CTX;
if (ns_result == 0) {
break;
}

@ -28,7 +28,6 @@
#include <process.h>
#include <sys/timeb.h>
#include "src/core/lib/iomgr/block_annotate.h"
#include "src/core/lib/support/time_precise.h"
static LARGE_INTEGER g_start_time;
@ -92,9 +91,7 @@ void gpr_sleep_until(gpr_timespec until) {
sleep_millis =
delta.tv_sec * GPR_MS_PER_SEC + delta.tv_nsec / GPR_NS_PER_MS;
GPR_ASSERT((sleep_millis >= 0) && (sleep_millis <= INT_MAX));
GRPC_SCHEDULING_START_BLOCKING_REGION;
Sleep((DWORD)sleep_millis);
GRPC_SCHEDULING_END_BLOCKING_REGION_NO_EXEC_CTX;
}
}

Loading…
Cancel
Save