Skip to content

Commit 4dac4a9

Browse files
committed
vpr: Remove forced_pause from VprContext
No longer needed since it can now be controlled through the GUI.
1 parent ccc9003 commit 4dac4a9

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

vpr/src/base/vpr_context.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include <unordered_map>
44
#include <memory>
55
#include <vector>
6-
#include <csignal> //for sig_atomic_t
76

87
#include "vpr_types.h"
98
#include "vtr_ndmatrix.h"
@@ -352,10 +351,6 @@ class VprContext : public Context {
352351
const RoutingContext& routing() const { return routing_; }
353352
RoutingContext& mutable_routing() { return routing_; }
354353

355-
//Should the program pause at the next convenient time?
356-
bool forced_pause() const { return force_pause_; }
357-
void set_forced_pause(bool val) { force_pause_ = val; }
358-
359354
private:
360355
DeviceContext device_;
361356

@@ -367,10 +362,6 @@ class VprContext : public Context {
367362
ClusteringContext clustering_;
368363
PlacementContext placement_;
369364
RoutingContext routing_;
370-
371-
//We use a volatile sig_atomic_t to ensures signals
372-
//set the value atomicly
373-
volatile sig_atomic_t force_pause_ = false;
374365
};
375366

376367
#endif

vpr/src/base/vpr_signal_handler.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ void vpr_signal_handler(int signal) {
5050
}
5151

5252
if (uncleared_sigint_count == 1) {
53-
//Request a pause at the next reasonable point (e.g. to resume the GUI)
54-
VTR_LOG("Recieved SIGINT: Attempting to pause...\n");
55-
g_vpr_ctx.set_forced_pause(true);
53+
VTR_LOG("Recieved SIGINT: try again to really exit...\n");
5654
} else if (uncleared_sigint_count == 2) {
5755
VTR_LOG("Recieved two uncleared SIGINTs: Attempting to checkpoint and exit...\n");
5856
checkpoint();

0 commit comments

Comments
 (0)