git-svn-id: svn://db.shs.com.ru/pip@895 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2020-03-04 11:05:50 +00:00
parent 659c2cd847
commit f728d4238b

View File

@@ -32,7 +32,7 @@ public:
/**
* @brief see wait(PIConditionLock&, const std::function<bool()>&)
*/
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<bool()>& condition);
virtual void wait(PIConditionLock& lk, const std::function<bool()>& condition);
/**
* @brief see waitFor(PIConditionLock&, int, const std::function<bool()>&)
*/
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<bool()>& condition);
virtual bool waitFor(PIConditionLock& lk, int timeoutMs, const std::function<bool()>& condition);
private:
NO_COPY_CLASS(PIConditionVariable)