The Pedigree Project 0.1
Public Member Functions | Private Attributes | List of all members
CachePageGuard Class Reference

#include <Cache.h>

+ Collaboration diagram for CachePageGuard:

Public Member Functions

 CachePageGuard (Cache &cache, uintptr_t location)
 

Private Attributes

Cache & m_Cache
 
uintptr_t m_Location
 

Detailed Description

RAII class for managing refcnt increases via lookup().

Use this when you want to perform a lookup() but have many potential exits that would otherwise need an associated release().

Definition at line 823 of file Cache.h.

Constructor & Destructor Documentation

◆ CachePageGuard()

CachePageGuard::CachePageGuard ( Cache &  cache,
uintptr_t  location 
)

Definition at line 2684 of file Cache.cc.

◆ ~CachePageGuard()

CachePageGuard::~CachePageGuard ( )
virtual

Definition at line 2687 of file Cache.cc.

Member Data Documentation

◆ m_Cache

Cache& CachePageGuard::m_Cache
private

Definition at line 829 of file Cache.h.

◆ m_Location

uintptr_t CachePageGuard::m_Location
private

Definition at line 830 of file Cache.h.


The documentation for this class was generated from the following files: