git-svn-id: svn://db.shs.com.ru/pip@895 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -32,7 +32,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* @brief see wait(PIConditionLock&, const std::function<bool()>&)
|
* @brief see wait(PIConditionLock&, const std::function<bool()>&)
|
||||||
*/
|
*/
|
||||||
void wait(PIConditionLock& lk);
|
virtual void wait(PIConditionLock& lk);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Wait until notified
|
* @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
|
* @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.
|
* 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()>&)
|
* @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
|
* @brief Wait for timeout or until notified
|
||||||
@@ -90,7 +90,7 @@ public:
|
|||||||
* as a bool. This is called repeatedly until it evaluates to true.
|
* as a bool. This is called repeatedly until it evaluates to true.
|
||||||
* @return false if timeout reached or true if wakeup condition is 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:
|
private:
|
||||||
NO_COPY_CLASS(PIConditionVariable)
|
NO_COPY_CLASS(PIConditionVariable)
|
||||||
|
|||||||
Reference in New Issue
Block a user