ShellCache::CacheType ShellCache::GetCacheType() { if ((GetTickCount64() - cachetypeticker) > REGISTRYTIMEOUT) { cachetypeticker = GetTickCount64(); cachetype.read(); } return CacheType(DWORD((cachetype))); }
ShellCache::CacheType ShellCache::GetCacheType() { RefreshIfNeeded(); return CacheType(DWORD((cachetype))); }
internal_data(cache_impl const& P, ml_t ml) : copy(CacheType(P.keeper, ml)), view(copy) { #ifdef TRIQS_ARRAYS_CACHE_COPY_VERBOSE std::cerr << " Cache : copy made " << std::endl << " -- TRACE = --" << std::endl << triqs::utility::stack_trace() << std::endl; #endif }