MCPcopy Create free account
hub / github.com/davisking/dlib / signal_handler

Function signal_handler

examples/slm_advanced_train_ex.cpp:422–427  ·  view source on GitHub ↗

Unix/Linux/macOS handler

Source from the content-addressed store, hash-verified

420#else
421 // Unix/Linux/macOS handler
422 void signal_handler(int signal) {
423 if (signal == SIGINT) {
424 g_terminate_flag.store(true);
425 cout << "\nCtrl+C detected, cleaning up and closing the program..." << endl;
426 }
427 }
428#endif
429
430 // Setup the interrupt handler based on platform

Callers

nothing calls this directly

Calls 1

storeMethod · 0.45

Tested by

no test coverage detected