Ouch! sleep() != snooze()

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20766 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-04-20 02:17:03 +00:00
parent 74b0e85845
commit 40844fe526
1 changed files with 2 additions and 2 deletions

View File

@ -686,7 +686,7 @@ vm_cache_resize(file_cache_ref *cache, off_t newSize)
// the page is busy -- wait a while and try again
poolLocker.Unlock();
mutex_unlock(&cache->lock);
sleep(20000);
snooze(20000);
mutex_lock(&cache->lock);
poolLocker.Lock();
} else {
@ -734,7 +734,7 @@ vm_cache_write_modified(file_cache_ref *cache, bool fsReenter)
vm_page_put_page(page);
poolLocker.Unlock();
locker.Unlock();
sleep(20000);
snooze(20000);
locker.Lock();
}