20 parser = argparse.ArgumentParser(description=
"Set the Default Number Of Threads.")
21 parser.add_argument(
"number_of_threads", type=int)
22 args = parser.parse_args()
26 threader.SetGlobalDefaultNumberOfThreads(args.number_of_threads)
29 filter_default_threads = filt.GetMultiThreader().GetGlobalDefaultNumberOfThreads()
31 print(
"Filter's default number of threads: {}".format(filter_default_threads))
33 assert filter_default_threads == args.number_of_threads