Verilog to Routing - VPR
Functions
vpr_signal_handler.cpp File Reference

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>
Include dependency graph for vpr_signal_handler.cpp:

Functions

void vpr_signal_handler (int signal)
 
void checkpoint ()
 
std::atomic< int > uncleared_sigint_count (0)
 
void vpr_install_signal_handler ()
 

Detailed Description

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).

Function Documentation

◆ checkpoint()

void checkpoint ( )

◆ uncleared_sigint_count()

std::atomic<int> uncleared_sigint_count ( )

◆ vpr_install_signal_handler()

void vpr_install_signal_handler ( )

◆ vpr_signal_handler()

void vpr_signal_handler ( int  signal)