Skip to content

Killthreads

parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter, description='Kill all or given threads.\n\nSwitches to given threads and calls pthread_exit(0) on them.\nThis is performed with scheduler-locking to prevent other threads from operating at the same time.\n\nKilling all other threads may be useful to use GDB checkpoints, e.g., to test given input & restart the execution to the point of interest (checkpoint).\n') module-attribute

killthreads(thread_ids=None, all=False)