Verilog to Routing - VPR
|
This file defines a signal handler used by VPR to catch SIGINT signals (ctrl-C from terminal) on POSIX systems. It is only active if VPR_USE_SIGACTION is defined. More...
#include "vtr_log.h"
#include "vtr_time.h"
#include "vpr_signal_handler.h"
#include "vpr_exit_codes.h"
#include "vpr_error.h"
#include "globals.h"
#include "read_place.h"
#include "route_export.h"
#include <atomic>
Functions | |
void | vpr_signal_handler (int signal) |
void | checkpoint () |
std::atomic< int > | uncleared_sigint_count (0) |
void | vpr_install_signal_handler () |
This file defines a signal handler used by VPR to catch SIGINT signals (ctrl-C from terminal) on POSIX systems. It is only active if VPR_USE_SIGACTION is defined.
If a SIGINT occur the handler sets the 'forced_pause' flag of the VPR context. If 'forced_pause' is still true when another SIGINT occurs an exception is thrown (typically ending the program).
void checkpoint | ( | ) |
std::atomic<int> uncleared_sigint_count | ( | 0 | ) |
void vpr_install_signal_handler | ( | ) |
void vpr_signal_handler | ( | int | signal | ) |