def METHOD_NAME(
    self, inst: int, board_initialized: bool
) -> None:
    if board_initialized:
        self.core.scheduleInstStopAnyThread(inst)
    else:
        self.core.max_insts_any_thread = inst