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:25 +00:00
parent 03fd7f27db
commit 9051fc538f
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);
}
}