2 * Copyright 2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef PAGE_CACHE_LOCKER_H
6 #define PAGE_CACHE_LOCKER_H
14 class PageCacheLocker
{
16 inline PageCacheLocker(vm_page
* page
,
17 bool dontWait
= true);
18 inline ~PageCacheLocker();
20 bool IsLocked() { return fPage
!= NULL
; }
22 bool Lock(vm_page
* page
, bool dontWait
= true);
26 bool _IgnorePage(vm_page
* page
);
32 PageCacheLocker::PageCacheLocker(vm_page
* page
, bool dontWait
)
40 PageCacheLocker::~PageCacheLocker()
46 #endif // PAGE_CACHE_LOCKER_H