21 QString operator()()
const;
29 bool runAction(std::function<
bool()> func);
30 void runVoidAction(std::function<
void()> func);
32 template <
typename Mutex>
37 template<
typename Mutex,
typename CallbackFunc = DefaultWaitingMessageCallback>
41 template<
typename ...Args>
48 if (!Mutex::try_lock()) {
50 f.waitForMutex(
static_cast<Mutex&
>(*
this));
87 return mutex.try_lock();
91 void waitForMutexLikeImpl(std::unique_ptr<MutexLikeBase> &&
mutex);
95 const QScopedPointer<Private>
m_d;