Merge "add set thread count"