The console control handler. Used to terminate the application when CTRL+C or CTRL+BREAK is pressed.
| 8 | /// The console control handler. Used to terminate the application when CTRL+C or CTRL+BREAK is pressed. |
| 9 | /// </summary> |
| 10 | static BOOL WINAPI console_ctrl_handler( DWORD ctrl_type ) |
| 11 | { |
| 12 | if ( ctrl_type == CTRL_C_EVENT || ctrl_type == CTRL_BREAK_EVENT ) |
| 13 | { |
| 14 | stop_source.request_stop( ); |
| 15 | return TRUE; |
| 16 | } |
| 17 | |
| 18 | return FALSE; |
| 19 | } |
| 20 | |
| 21 | std::int32_t main( std::int32_t argc, char* argv[] ) |
| 22 | { |
nothing calls this directly
no outgoing calls
no test coverage detected