SyTen

◆ cache_async()

template<typename Type >
void syten::AsyncCached< Type >::cache_async ( ) const
inline

Caches the object to disk asynchronously and deletes the in-memory copy eventually.

References syten::AsyncCached< Type >::cache(), syten::Caching::cur_workers, syten::Caching::do_cache, std::thread::join(), std::thread::joinable(), syten::AsyncCached< Type >::log(), syten::Caching::max_workers, syten::AsyncCached< Type >::mtex, syten::Caching::mtx_workers, syten::AsyncCached< Type >::worker, and syten::AsyncCached< Type >::worker_is_running.

Referenced by syten::AsyncCached< Type >::maybe_cache_async().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: