Example source code for the article "Condition Variable Class in C++"