PISM, A Parallel Ice Sheet Model stable 0.4.1779

src/base/pism_signal.h

Go to the documentation of this file.
00001 /*
00002  Copyright (C) 2007 Jed Brown
00003 
00004  This file is part of Pism.
00005 
00006  Pism is free software; you can redistribute it and/or modify it under the
00007  terms of the GNU General Public License as published by the Free Software
00008  Foundation; either version 2 of the License, or (at your option) any later
00009  version.
00010 
00011  Pism is distributed in the hope that it will be useful, but WITHOUT ANY
00012  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00013  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
00014  details.
00015 
00016  You should have received a copy of the GNU General Public License
00017  along with Pism; if not, write to the Free Software
00018  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019 */
00020 
00021 #ifndef __pism_signal_h
00022 #define __pism_signal_h
00023 
00024 #ifdef __cplusplus
00025 extern "C" 
00026 {
00027 #endif
00028 
00029 #include <signal.h>
00030 
00031   extern volatile sig_atomic_t pism_signal;
00032 
00033   void pism_signal_handler(int sig);
00034 
00035 #ifdef __cplusplus
00036 }
00037 #endif
00038 
00039 #endif
00040 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines