fixing a bug in sample: calling_process_tick.cpp having to do with threading