1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[ win64 ] change in select - sleep only when nothing to do

This commit is contained in:
Unknown 2022-05-01 20:47:41 +02:00
parent 29566c75c6
commit 5c74f80eb5

View File

@ -686,8 +686,11 @@ int win32_select (int num_fds, struct fd_set *rd, struct fd_set *wr,
}
/* Lower CPU Usage WIN64 */
Sleep (1);
if (rc) break;
if (rc) {
break;
} else {
Sleep (1);
}
}
rc = 0;