Variable g_shutdown_requested

Variable Documentation

std::atomic<bool> g_shutdown_requested

Global flag for graceful termination of long-running operations.

This atomic boolean is used to coordinate graceful shutdown across all threads when a termination signal is received or when the user requests cancellation. All long-running loops and operations should periodically check this flag.

Note

This is defined in main.cpp and set by the signal handler