Style changes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34536 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -107,8 +107,9 @@ public:
|
|||||||
virtual status_t Commit(off_t size);
|
virtual status_t Commit(off_t size);
|
||||||
virtual bool HasPage(off_t offset);
|
virtual bool HasPage(off_t offset);
|
||||||
|
|
||||||
virtual status_t Read(off_t offset, const iovec *vecs, size_t count,
|
virtual status_t Read(off_t offset, const iovec *vecs,
|
||||||
uint32 flags, size_t *_numBytes);
|
size_t count,uint32 flags,
|
||||||
|
size_t *_numBytes);
|
||||||
virtual status_t Write(off_t offset, const iovec *vecs, size_t count,
|
virtual status_t Write(off_t offset, const iovec *vecs, size_t count,
|
||||||
uint32 flags, size_t *_numBytes);
|
uint32 flags, size_t *_numBytes);
|
||||||
virtual status_t WriteAsync(off_t offset, const iovec* vecs,
|
virtual status_t WriteAsync(off_t offset, const iovec* vecs,
|
||||||
@@ -130,16 +131,10 @@ public:
|
|||||||
virtual void AcquireStoreRef();
|
virtual void AcquireStoreRef();
|
||||||
virtual void ReleaseStoreRef();
|
virtual void ReleaseStoreRef();
|
||||||
|
|
||||||
private:
|
|
||||||
inline bool _IsMergeable() const;
|
|
||||||
|
|
||||||
void _MergeWithOnlyConsumer();
|
|
||||||
void _RemoveConsumer(VMCache* consumer);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
struct VMArea* areas;
|
VMArea* areas;
|
||||||
struct list_link consumer_link;
|
list_link consumer_link;
|
||||||
struct list consumers;
|
list consumers;
|
||||||
// list of caches that use this cache as a source
|
// list of caches that use this cache as a source
|
||||||
VMCachePagesTree pages;
|
VMCachePagesTree pages;
|
||||||
VMCache* source;
|
VMCache* source;
|
||||||
@@ -153,10 +148,16 @@ public:
|
|||||||
uint32 type : 6;
|
uint32 type : 6;
|
||||||
|
|
||||||
#if DEBUG_CACHE_LIST
|
#if DEBUG_CACHE_LIST
|
||||||
struct VMCache* debug_previous;
|
VMCache* debug_previous;
|
||||||
struct VMCache* debug_next;
|
VMCache* debug_next;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
private:
|
||||||
|
inline bool _IsMergeable() const;
|
||||||
|
|
||||||
|
void _MergeWithOnlyConsumer();
|
||||||
|
void _RemoveConsumer(VMCache* consumer);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int32 fRefCount;
|
int32 fRefCount;
|
||||||
mutex fLock;
|
mutex fLock;
|
||||||
|
|||||||
Reference in New Issue
Block a user