set_thread_envvars

lsst.utils.threads.set_thread_envvars(num_threads: int = 1, override: bool = False) → None

Set common threading environment variables to the given value.

Parameters:
num_threads : int, optional

Number of threads to use when setting the environment variable values. Default to 1 (disable threading).

override : bool, optional

Controls whether a previously set value should be over-ridden. Defaults to False.