Default 0 for thread count.
No longer depend on private api.