Add wxCondition::Wait() overload that also tests the condition.
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 6 Sep 2013 17:09:05 +0000 (17:09 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 6 Sep 2013 17:09:05 +0000 (17:09 +0000)
commitceee1c4b3bafae08d54c97d6b18ab3edf0dd519a
tree96c0e87f9c030db3c101a981af6ed8ad9290bc87
parente549f179d179ca7e08a93cf3c1f9e61e892f035a
Add wxCondition::Wait() overload that also tests the condition.

Add Wait() overload that takes a functor argument and doesn't return
until the condition is signaled _and_ the predicate returns true.  This
is useful for dealing with spurious wakeups and is modeled after C++11
std::condition_variable's corresponding method.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/thread.h
interface/wx/thread.h