From f728d4238b7b9df5d7d56311e811aa0486557136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Wed, 4 Mar 2020 11:05:50 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@895 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/concurrent/piconditionvar.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)