Submitted by: James Baker <jbaker@tableausoftware.com> et al.

Workaround for slow Heap32Next on some versions of Windows.
This commit is contained in:
Dr. Stephen Henson
2010-02-17 14:32:01 +00:00
parent b50ef8b216
commit 657b02d0cf
2 changed files with 6 additions and 0 deletions

View File

@@ -527,6 +527,7 @@ int RAND_poll(void)
RAND_add(&hentry,
hentry.dwSize, 5);
while (heap_next(&hentry)
&& (!good || (GetTickCount()-starttime)<MAXDELAY)
&& --entrycnt > 0);
}
}