|
Boost : |
From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2007-09-06 04:51:38
Christopher Kohlhoff wrote:
> http://article.gmane.org/gmane.comp.lib.boost.devel/155402
I was traveling along this post, but now have another question:
While my thread is waiting in the futures:
T get() const
{
boost::mutex::scoped_lock lock(mutex_);
while (!value_.get() && !exception_.get())
condition_.wait(lock);
if (exception_.get())
exception_->raise();
return *value_;
}
it will not react to a io_service_.stop(); request.
While I do understand why this is so, I wonder if there is a way to let
the future also check for the demuxers stop flag and exit the wait by
possibly throwing an error?
Roland aka speedsnail
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk