Boost logo

Boost Users :

Subject: Re: [Boost-users] condition variable predicate and lambda
From: Christopher Pisz (cpisz_at_[hidden])
Date: 2011-10-18 18:30:50


Igor R <boost.lists <at> gmail.com> writes:

> {
> unique_lock lock(mutex_);
> condvar_->timed_wait(lock, timeout, lambda::var(state_) == HAPPY);
> }

I owe you at least a 6 pack by now Igor. Thanks so much!


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net