casa  $Rev:20696$
interrupt.h
Go to the documentation of this file.
00001 #ifndef _INTERRUPT_H_
00002 #define _INTERRUPT_H_
00003 //# Python dependent interupt handlers...
00004 //# Copyright (C) 2006-2007
00005 //# Associated Universities, Inc. Washington DC, USA.
00006 //#
00007 //# This library is free software; you can redistribute it and/or modify it
00008 //# under the terms of the GNU Library General Public License as published by
00009 //# the Free Software Foundation; either version 2 of the License, or (at your
00010 //# option) any later version.
00011 //#
00012 //# This library is distributed in the hope that it will be useful, but WITHOUT
00013 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00015 //# License for more details.
00016 //#
00017 //# You should have received a copy of the GNU Library General Public License
00018 //# along with this library; if not, write to the Free Software Foundation,
00019 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00020 //#
00021 //# Correspondence concerning AIPS++ should be addressed as follows:
00022 //#        Internet email: aips2-request@nrao.edu.
00023 //#        Postal address: AIPS++ Project Office
00024 //#                        National Radio Astronomy Observatory
00025 //#                        520 Edgemont Road
00026 //#                        Charlottesville, VA 22903-2475 USA
00027 //#   
00028 //# @author 
00029 //# @version 
00031 #include <sys/types.h>
00032 #include <setjmp.h>
00033 #include <signal.h>
00034 
00035 namespace casa { //# NAMESPACE CASA - BEGIN
00036     struct interrupt {
00037         static bool init( bool forward=true );
00038         static void reset( );
00039         static bool cont( );
00040         static void off( );
00041         static void on( );
00042     };
00043 
00044     extern sigjmp_buf jmp_buf;
00045     extern bool longjmp_ok;
00046     extern void (*signal_handler)(int);
00047 
00048 };
00049 
00050 #endif
00051 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines