SyTen

◆ wait_for_worker_completion()

template<typename Type >
std::unique_lock< std::recursive_mutex > syten::AsyncCached< Type >::wait_for_worker_completion ( ) const
inline

Waits until any currently running worker job has completed and then returns a lock with locked mutex to the caller, ensuring that no further worker jobs can start.

References syten::logGW(), syten::AsyncCached< Type >::mtex, std::this_thread::sleep_for(), and syten::AsyncCached< Type >::worker_is_running.

Referenced by syten::AsyncCached< Type >::delete_file(), syten::AsyncCached< Type >::load(), and syten::AsyncCached< Type >::save().

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