in_main_thread

sofia_redux.toolkit.utilities.multiprocessing.in_main_thread()[source]

Return whether the process is running in the main thread.

Returns:
main_thread: bool

True if this process is running in the main thread, and False if it is running in a child process.