modify the access permission of PurgeableMemBase

Signed-off-by: zhoumengjie7@huawei.com <zhoumengjie7@huawei.com>
Change-Id: I6732b6af29721d1480f3cfbad365c0ff205fdada
This commit is contained in:
zhoumengjie7@huawei.com 2024-09-23 11:30:15 +08:00
parent 74d876e608
commit 1b2b5850f5

View File

@ -104,6 +104,8 @@ public:
PurgeableMemBase& operator = (PurgeableMemBase&) = delete;
PurgeableMemBase(PurgeableMemBase&&) noexcept = delete;
PurgeableMemBase& operator = (PurgeableMemBase&&) noexcept = delete;
virtual int GetPinStatus() const;
virtual bool Pin();
protected:
void *dataPtr_ = nullptr;
@ -114,10 +116,8 @@ protected:
unsigned int buildDataCount_ = 0;
bool BuildContent();
bool IfNeedRebuild();
virtual bool Pin();
virtual bool Unpin();
virtual bool IsPurged();
virtual int GetPinStatus() const;
virtual void AfterRebuildSucc();
virtual std::string ToString() const;
};