|
Sierra Toolkit
Version of the Day
|
00001 /*--------------------------------------------------------------------*/ 00002 /* Copyright 2003 Sandia Corporation. */ 00003 /* Under the terms of Contract DE-AC04-94AL85000, there is a */ 00004 /* non-exclusive license for use of this work by or on behalf */ 00005 /* of the U.S. Government. Export of this program may require */ 00006 /* a license from the United States Government. */ 00007 /*--------------------------------------------------------------------*/ 00008 00009 #ifndef STK_UTIL_DIAG_Signal_hpp 00010 #define STK_UTIL_DIAG_Signal_hpp 00011 00012 #include <string> 00013 00014 #include <setjmp.h> 00015 00031 namespace sierra { 00032 namespace Env { 00033 00038 00043 void activate_signals(); 00044 00049 void deactivate_signals(); 00050 00061 sigjmp_buf *get_sigjmpbuf(); 00062 00063 // /** 00064 // * @brief Function <b>disable_siglongjmp</b> disables the long jump buffer. When 00065 // * signals are received, they return to the caller without long jumping to the set jump point. 00066 // * 00067 // */ 00068 // void disable_siglongjmp(); 00069 00077 const std::string &get_signal_message(); 00078 00084 bool HUP_received(); 00085 00093 bool shutdown_requested(); 00094 00098 00099 } // namespace Env 00100 } // namespace sierra 00101 00102 #endif // STK_UTIL_DIAG_Signal_hpp