I've got a thread that waits on a condition variable. I signal that variable in another thread when condition A occurs. However, I also need the waiting thread stop waiting if condition B occurs. A and B should really be separately identified.
Can you wait on two condition variables somehow? What would that look like?