New idea for thread synchronization: condition_variable