Boost logo

Boost Users :

Subject: Re: [Boost-users] condition variable predicate and lambda
From: Igor R (boost.lists_at_[hidden])
Date: 2011-10-19 02:57:47


>> {
>>   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!

You're welcome :).


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