| 31 | |
| 32 | static std::atomic<bool> g_is_interrupted = false; |
| 33 | static bool should_stop() { |
| 34 | return g_is_interrupted.load(); |
| 35 | } |
| 36 | |
| 37 | #if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__)) || defined (_WIN32) |
| 38 | static void signal_handler(int) { |
no test coverage detected