Pyrogenesis  trunk
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
topology::CacheRelations Class Reference

Classes

class  SharedCache
 stores ID and tracks which processors share this cache More...
 

Public Member Functions

void Add (u8 cacheId, size_t processor)
 add processor to the processor mask owned by cache identified by <id> More...
 
size_t NumCaches () const
 
void StoreProcessorMasks (uintptr_t *cachesProcessorMask)
 store topology in an array (one entry per cache) of masks representing the processors that share a cache. More...
 

Private Member Functions

SharedCacheFind (u8 cacheId)
 

Private Attributes

std::vector< SharedCachem_caches
 

Member Function Documentation

void topology::CacheRelations::Add ( u8  cacheId,
size_t  processor 
)
inline

add processor to the processor mask owned by cache identified by <id>

SharedCache* topology::CacheRelations::Find ( u8  cacheId)
inlineprivate
size_t topology::CacheRelations::NumCaches ( ) const
inline
void topology::CacheRelations::StoreProcessorMasks ( uintptr_t *  cachesProcessorMask)
inline

store topology in an array (one entry per cache) of masks representing the processors that share a cache.

Member Data Documentation

std::vector<SharedCache> topology::CacheRelations::m_caches
private

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