1
0
mirror of https://github.com/golang/go synced 2024-11-23 19:40:08 -07:00

runtime: burn cpu before calling yield in windows runtime.systime

LGTM=dvyukov
R=golang-codereviews, dvyukov
CC=golang-codereviews
https://golang.org/cl/117670043
This commit is contained in:
Alex Brainman 2014-08-06 17:24:03 +10:00
parent 6503d40051
commit bf13b711bd

View File

@ -280,7 +280,7 @@ runtime·systime(KSYSTEM_TIME *timeaddr)
KSYSTEM_TIME t;
int32 i;
for(i = 0; i < 10000; i++) {
for(i = 1; i < 10000; i++) {
// these fields must be read in that order (see URL above)
t.High1Time = timeaddr->High1Time;
t.LowPart = timeaddr->LowPart;