Unify thread func return value