Warten auf mehrere Zustandsvariablen in Boost?

Ich bin auf der Suche nach einem Weg, zu warten, bis mehrere Bedingungs-Variablen.
dh. so etwas wie:

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();
}

Ist so etwas möglich mit condition Variablen. Und wenn nicht, gibt es alternative Lösungen?

Dank

InformationsquelleAutor der Frage | 2009-09-11

Schreibe einen Kommentar