Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
Realm::QueryCacheSlot< S > Class Template Reference

#include <machine_impl.h>

Collaboration diagram for Realm::QueryCacheSlot< S >:
[legend]

Public Member Functions

 QueryCacheSlot (void)
const S * get (unsigned generation) const
template<typename BuildFn>
const S * get_or_build (unsigned generation, const atomic< unsigned int > &live, BuildFn &&build)
const S * install (S *built, unsigned live_generation)
void cleanup (void)
unsigned long build_count (void) const

Protected Attributes

atomic< const S * > current
Mutex mutex
std::vector< const S * > retired
UnfairMutex build_mutex
atomic< unsigned long > builds

Constructor & Destructor Documentation

◆ QueryCacheSlot()

template<typename S>
Realm::QueryCacheSlot< S >::QueryCacheSlot ( void )
inline

Member Function Documentation

◆ build_count()

template<typename S>
unsigned long Realm::QueryCacheSlot< S >::build_count ( void ) const
inline

◆ cleanup()

template<typename S>
void Realm::QueryCacheSlot< S >::cleanup ( void )

◆ get()

template<typename S>
const S * Realm::QueryCacheSlot< S >::get ( unsigned generation) const
inline

◆ get_or_build()

template<typename S>
template<typename BuildFn>
const S * Realm::QueryCacheSlot< S >::get_or_build ( unsigned generation,
const atomic< unsigned int > & live,
BuildFn && build )
inline

◆ install()

template<typename S>
const S * Realm::QueryCacheSlot< S >::install ( S * built,
unsigned live_generation )

Member Data Documentation

◆ build_mutex

template<typename S>
UnfairMutex Realm::QueryCacheSlot< S >::build_mutex
protected

◆ builds

template<typename S>
atomic<unsigned long> Realm::QueryCacheSlot< S >::builds
protected

◆ current

template<typename S>
atomic<const S *> Realm::QueryCacheSlot< S >::current
protected

◆ mutex

template<typename S>
Mutex Realm::QueryCacheSlot< S >::mutex
protected

◆ retired

template<typename S>
std::vector<const S *> Realm::QueryCacheSlot< S >::retired
protected

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