diff options
Diffstat (limited to 'include/jau/environment.hpp')
-rw-r--r-- | include/jau/environment.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/jau/environment.hpp b/include/jau/environment.hpp index 261f103..d0732fd 100644 --- a/include/jau/environment.hpp +++ b/include/jau/environment.hpp @@ -49,6 +49,16 @@ namespace jau { * </p> */ class root_environment { + public: + /** + * Optional path to signal early termination, i.e. JVM shutdown. + */ + static void set_terminating() noexcept; + /** + * Returns true if program is terminating as detected via atexit() callback + * or set_terminating() has been called. + */ + static bool is_terminating() noexcept; }; /** |