Conditional mutex.