1 #ifndef CommonTools_Utils_ThreadSafeFunctor_H 2 #define CommonTools_Utils_ThreadSafeFunctor_H 11 template <
class Functor>
14 template <
typename... Params>
19 template <
typename... Params>
20 typename std::invoke_result_t<Functor, Params...>
operator()(Params&&...
params)
const {
21 std::lock_guard<std::mutex> guard(
mutex_);
std::invoke_result_t< Functor, Params... > operator()(Params &&... params) const
ThreadSafeFunctor(ThreadSafeFunctor &&other) noexcept
ThreadSafeFunctor(Params &&... params)