Use thread_yield(false) instead of snooze(100) for reseeding. This makes
the driver actually usuable. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23907 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -191,9 +191,7 @@ reseed(ch_randgen *prandgen, const uint32 initTimes)
|
||||
|
||||
for (j = initTimes; j; j--) {
|
||||
for (i = NK * initTimes; i; i--) {
|
||||
//thread_yield();
|
||||
snooze(100);
|
||||
// TODO: Our thread_yield() currently waits too long for emulators...
|
||||
thread_yield(false);
|
||||
|
||||
y.Q[0] += system_time();
|
||||
attach(&x, &y, 0x52437EFFU, 0x026A4CEBU, 0xD9E66AC9U, 0x56E5A975U);
|
||||
|
||||
Reference in New Issue
Block a user