1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

AK: Rename Retainable => RefCounted.

(And various related renames that go along with it.)
This commit is contained in:
Andreas Kling 2019-06-21 15:29:31 +02:00
parent ef1bfcb9d8
commit 77b9fa89dd
45 changed files with 118 additions and 118 deletions

View file

@ -12,13 +12,13 @@ class PhysicalPage {
public:
PhysicalAddress paddr() const { return m_paddr; }
void retain()
void ref()
{
ASSERT(m_retain_count);
++m_retain_count;
}
void release()
void deref()
{
ASSERT(m_retain_count);
if (!--m_retain_count) {
@ -30,7 +30,7 @@ public:
static Retained<PhysicalPage> create(PhysicalAddress, bool supervisor, bool may_return_to_freelist = true);
word retain_count() const { return m_retain_count; }
word ref_count() const { return m_retain_count; }
private:
PhysicalPage(PhysicalAddress paddr, bool supervisor, bool may_return_to_freelist = true);