Toying with condition variables