For general use, it would make sense to convert Condition into a template and get rid of some of the operators that don't make sense. Using an integer as the condition type probably isn't realistic since you could just use a semaphore or barrier for that case. Still, the Tutorial shows the basics and provides a foundation on which you can create a more useful class for your application.