Я ищу способ подождать несколько переменных условия. то есть. что-то вроде:
boost::condition_variable cond1;
boost::condition_variable cond2;
void wait_for_data_to_process()
{
boost::unique_lock<boost::mutex> lock(mut);
wait_any(lock, cond1, cond2); //boost only provides cond1.wait(lock);
process_data();
}
Что-то вроде этого возможно с переменными состояния. А если нет альтернативных решений?
Спасибо