vpr: Remove forced_pause from VprContext
No longer needed since it can now be controlled through the GUI.
diff --git a/vpr/src/base/vpr_context.h b/vpr/src/base/vpr_context.h
index 6ed3bca..8f61be4 100644
--- a/vpr/src/base/vpr_context.h
+++ b/vpr/src/base/vpr_context.h
@@ -3,7 +3,6 @@
#include <unordered_map>
#include <memory>
#include <vector>
-#include <csignal> //for sig_atomic_t
#include "vpr_types.h"
#include "vtr_ndmatrix.h"
@@ -352,10 +351,6 @@
const RoutingContext& routing() const { return routing_; }
RoutingContext& mutable_routing() { return routing_; }
- //Should the program pause at the next convenient time?
- bool forced_pause() const { return force_pause_; }
- void set_forced_pause(bool val) { force_pause_ = val; }
-
private:
DeviceContext device_;
@@ -367,10 +362,6 @@
ClusteringContext clustering_;
PlacementContext placement_;
RoutingContext routing_;
-
- //We use a volatile sig_atomic_t to ensures signals
- //set the value atomicly
- volatile sig_atomic_t force_pause_ = false;
};
#endif
diff --git a/vpr/src/base/vpr_signal_handler.cpp b/vpr/src/base/vpr_signal_handler.cpp
index 297fd28..edcad9e 100644
--- a/vpr/src/base/vpr_signal_handler.cpp
+++ b/vpr/src/base/vpr_signal_handler.cpp
@@ -50,9 +50,7 @@
}
if (uncleared_sigint_count == 1) {
- //Request a pause at the next reasonable point (e.g. to resume the GUI)
- VTR_LOG("Recieved SIGINT: Attempting to pause...\n");
- g_vpr_ctx.set_forced_pause(true);
+ VTR_LOG("Recieved SIGINT: try again to really exit...\n");
} else if (uncleared_sigint_count == 2) {
VTR_LOG("Recieved two uncleared SIGINTs: Attempting to checkpoint and exit...\n");
checkpoint();