I want to investigate the barrier and add a function threadtest which only have loginfo like this.   but it will throw some warnings and exit abnormal. 