diff --git a/src_main/concurrent/piconditionvar.h b/src_main/concurrent/piconditionvar.h index cef1f9f4..a506b8c6 100644 --- a/src_main/concurrent/piconditionvar.h +++ b/src_main/concurrent/piconditionvar.h @@ -32,7 +32,7 @@ public: /** * @brief see wait(PIConditionLock&, const std::function&) */ - void wait(PIConditionLock& lk); + virtual void wait(PIConditionLock& lk); /** * @brief Wait until notified @@ -58,12 +58,12 @@ public: * @param condition A callable object or function that takes no arguments and returns a value that can be evaluated * as a bool. This is called repeatedly until it evaluates to true. */ - void wait(PIConditionLock& lk, const std::function& condition); + virtual void wait(PIConditionLock& lk, const std::function& condition); /** * @brief see waitFor(PIConditionLock&, int, const std::function&) */ - bool waitFor(PIConditionLock& lk, int timeoutMs); + virtual bool waitFor(PIConditionLock& lk, int timeoutMs); /** * @brief Wait for timeout or until notified @@ -90,7 +90,7 @@ public: * as a bool. This is called repeatedly until it evaluates to true. * @return false if timeout reached or true if wakeup condition is true */ - bool waitFor(PIConditionLock& lk, int timeoutMs, const std::function& condition); + virtual bool waitFor(PIConditionLock& lk, int timeoutMs, const std::function& condition); private: NO_COPY_CLASS(PIConditionVariable)