Init for cdt in new tread.