mirror of
https://gitee.com/openharmony/commonlibrary_memory_utils
synced 2024-11-27 09:21:58 +00:00
modify the access permission of PurgeableMemBase
Signed-off-by: zhoumengjie7@huawei.com <zhoumengjie7@huawei.com> Change-Id: I6732b6af29721d1480f3cfbad365c0ff205fdada
This commit is contained in:
parent
74d876e608
commit
1b2b5850f5
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user