Skip to content

killthreads ¤

Functions:

Attributes:

parser module-attribute ¤

parser = ArgumentParser(
    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"
)

killthreads ¤

killthreads(thread_ids: list[int] | None = None, all: bool = False) -> None