Boost logo

Boost :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2007-09-06 04:51:38

Christopher Kohlhoff wrote:

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())
     if (exception_.get())
     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, gregod at, cpdaniel at, john at