File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change 3
3
#include < unordered_map>
4
4
#include < memory>
5
5
#include < vector>
6
- #include < csignal> // for sig_atomic_t
7
6
8
7
#include " vpr_types.h"
9
8
#include " vtr_ndmatrix.h"
@@ -352,10 +351,6 @@ class VprContext : public Context {
352
351
const RoutingContext& routing () const { return routing_; }
353
352
RoutingContext& mutable_routing () { return routing_; }
354
353
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
-
359
354
private:
360
355
DeviceContext device_;
361
356
@@ -367,10 +362,6 @@ class VprContext : public Context {
367
362
ClusteringContext clustering_;
368
363
PlacementContext placement_;
369
364
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 ;
374
365
};
375
366
376
367
#endif
Original file line number Diff line number Diff line change @@ -50,9 +50,7 @@ void vpr_signal_handler(int signal) {
50
50
}
51
51
52
52
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 " );
56
54
} else if (uncleared_sigint_count == 2 ) {
57
55
VTR_LOG (" Recieved two uncleared SIGINTs: Attempting to checkpoint and exit...\n " );
58
56
checkpoint ();
You can’t perform that action at this time.
0 commit comments