More information on this package is here.

#ifndef __TInterrupt__
#define __TInterrupt__

#include <iostream>
using namespace std;
#include "TSystem.h"
#include "TSysEvtHandler.h"

class TInterrupt: public TSignalHandler {

 public:
  Int_t NumSig;
  static Int_t fgInterrupted;

 public:
  TInterrupt(): TSignalHandler(kSigInterrupt, kFALSE){NumSig=0;};
  ~TInterrupt(){};
  Bool_t Notify();  //   Override.
  Bool_t IsInterrupted(){ return( fgInterrupted>0);};
  Bool_t IsNotInterrupted(){ return( fgInterrupted==0);};


  ClassDef(TInterrupt,1) // TInterrupt
};

#endif


Author: Maurik Holtrop
Last update: ClasTool/TInterrupt:$Name: $:$Id: TInterrupt.cc,v 1.2 2007/03/01 22:27:00 holtrop Exp $
CopyLeft - This code is freely available.

ROOT Home page - ClasTool Class index - Class Hierarchy - Top of the page