Esempio n. 1
0
ShellCache::CacheType ShellCache::GetCacheType()
{
    if ((GetTickCount64() - cachetypeticker) > REGISTRYTIMEOUT)
    {
        cachetypeticker = GetTickCount64();
        cachetype.read();
    }
    return CacheType(DWORD((cachetype)));
}
Esempio n. 2
0
ShellCache::CacheType ShellCache::GetCacheType()
{
	RefreshIfNeeded();
	return CacheType(DWORD((cachetype)));
}
Esempio n. 3
0
   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
   }