Style cleanup. No functional change.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43122 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2011-11-02 19:09:48 +00:00
parent bbc851098d
commit ab3d6a3eaf
7 changed files with 54 additions and 43 deletions

View File

@ -64,6 +64,9 @@ public:
virtual void Merge(VMCache* source);
protected:
virtual void DeleteObject();
private:
class WriteCallback;
friend class WriteCallback;

View File

@ -17,18 +17,23 @@ class VMAnonymousNoSwapCache : public VMCache {
public:
virtual ~VMAnonymousNoSwapCache();
status_t Init(bool canOvercommit, int32 numPrecommittedPages,
int32 numGuardPages, uint32 allocationFlags);
status_t Init(bool canOvercommit,
int32 numPrecommittedPages,
int32 numGuardPages,
uint32 allocationFlags);
virtual status_t Commit(off_t size, int priority);
virtual bool HasPage(off_t offset);
virtual status_t Read(off_t offset, const iovec *vecs, size_t count,
uint32 flags, size_t *_numBytes);
virtual status_t Write(off_t offset, const iovec *vecs, size_t count,
uint32 flags, size_t *_numBytes);
virtual status_t Read(off_t offset, const iovec* vecs,
size_t count, uint32 flags,
size_t* _numBytes);
virtual status_t Write(off_t offset, const iovec* vecs,
size_t count, uint32 flags,
size_t* _numBytes);
virtual status_t Fault(struct VMAddressSpace *aspace, off_t offset);
virtual status_t Fault(struct VMAddressSpace* aspace,
off_t offset);
virtual void MergeStore(VMCache* source);

View File

@ -15,12 +15,15 @@
class VMDeviceCache : public VMCache {
public:
status_t Init(addr_t baseAddress, uint32 allocationFlags);
status_t Init(addr_t baseAddress,
uint32 allocationFlags);
virtual status_t Read(off_t offset, const iovec *vecs, size_t count,
uint32 flags, size_t *_numBytes);
virtual status_t Write(off_t offset, const iovec *vecs, size_t count,
uint32 flags, size_t *_numBytes);
virtual status_t Read(off_t offset, const iovec* vecs,
size_t count, uint32 flags,
size_t* _numBytes);
virtual status_t Write(off_t offset, const iovec* vecs,
size_t count, uint32 flags,
size_t* _numBytes);
private:
addr_t fBaseAddress;