Skip to content

Commit

Permalink
Fix extreme CPU use in scheduler on Windows (#1785)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalcolith authored and SeanTAllen committed Mar 30, 2017
1 parent 48c4a36 commit f84f259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libponyrt/sched/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ void ponyint_cpu_core_pause(uint64_t tsc, uint64_t tsc2, bool yield)
DTRACE1(CPU_NANOSLEEP, ts.tv_nsec);
nanosleep(&ts, NULL);
#else
Sleep(0);
Sleep(yield ? 1 : 0);
#endif
}

Expand Down

0 comments on commit f84f259

Please sign in to comment.