Having fun with design patterns in CPP, pthread wrapper and other util classes.