Ouch! sleep() != snooze()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20766 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -686,7 +686,7 @@ vm_cache_resize(file_cache_ref *cache, off_t newSize)
|
|||||||
// the page is busy -- wait a while and try again
|
// the page is busy -- wait a while and try again
|
||||||
poolLocker.Unlock();
|
poolLocker.Unlock();
|
||||||
mutex_unlock(&cache->lock);
|
mutex_unlock(&cache->lock);
|
||||||
sleep(20000);
|
snooze(20000);
|
||||||
mutex_lock(&cache->lock);
|
mutex_lock(&cache->lock);
|
||||||
poolLocker.Lock();
|
poolLocker.Lock();
|
||||||
} else {
|
} else {
|
||||||
@@ -734,7 +734,7 @@ vm_cache_write_modified(file_cache_ref *cache, bool fsReenter)
|
|||||||
vm_page_put_page(page);
|
vm_page_put_page(page);
|
||||||
poolLocker.Unlock();
|
poolLocker.Unlock();
|
||||||
locker.Unlock();
|
locker.Unlock();
|
||||||
sleep(20000);
|
snooze(20000);
|
||||||
locker.Lock();
|
locker.Lock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user