waiting for multiple condition variables in boost?

后端 未结 5 1595
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 09:36

I\'m looking for a way to wait for multiple condition variables. ie. something like:

boost::condition_variable cond1;  
boost::condition_variable cond2;

void wa         


        
5条回答
  •  北荒
    北荒 (楼主)
    2021-02-05 10:06

    As Managu points out using multiple conditions might not be a good solution in the first place. What you want to do should be possible to be implemented using Semaphores.

提交回复
热议问题