소스 검색

Merge pull request #1196 from vjpai/fix-time-race

Remove the racy check added in commit 74c14e5a
Nicolas Noble 10 년 전
부모
커밋
6c963cd784
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      src/core/iomgr/alarm.c

+ 0 - 4
src/core/iomgr/alarm.c

@@ -307,10 +307,6 @@ static int run_some_expired_alarms(gpr_mu *drop_mu, gpr_timespec now,
 
   /* TODO(ctiller): verify that there are any alarms (atomically) here */
 
-  if (gpr_time_cmp(g_shard_queue[0]->min_deadline, now) >= 0) {
-    return 0;
-  }
-
   if (gpr_mu_trylock(&g_checker_mu)) {
     gpr_mu_lock(&g_mu);