OpendTect-6_4  6.4
Public Types | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
SignalHandling Class Reference

Asynchronous event handling and notification. More...

Inheritance diagram for SignalHandling:
[legend]

Public Types

enum  EvType {
  ConnClose, ChldStop, ReInit, Stop,
  Cont, Alarm, Kill
}
 

Static Public Member Functions

static void initClass ()
 
static void startNotify (EvType, const CallBack &)
 
static void stopNotify (EvType, const CallBack &)
 
static void stopProcess (int, bool friendly=true)
 
static void stopRemote (const char *, int, bool friendly=true, const char *rshcomm=0)
 
static void initFatalSignalHandling ()
 

Protected Member Functions

 SignalHandling ()
 
 ~SignalHandling ()
 
CallBackSetgetCBL (EvType)
 
void doKill (int)
 
void doStop (int, bool withcbs=true)
 
void doCont ()
 
void handleConn ()
 
void handleChld ()
 
void handleAlarm ()
 
void handleReInit ()
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Static Protected Member Functions

static SignalHandlingSH ()
 
static void handle (int)
 

Protected Attributes

CallBackSetconncbs_
 
CallBackSetchldcbs_
 
CallBackSetreinitcbs_
 
CallBackSetstopcbs_
 
CallBackSetcontcbs_
 
CallBackSetalarmcbs_
 
CallBackSetkillcbs_
 

Friends

void DBG::forceCrash (bool)
 

Additional Inherited Members

- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Detailed Description

Asynchronous event handling and notification.

Member Enumeration Documentation

Enumerator
ConnClose 
ChldStop 
ReInit 
Stop 
Cont 
Alarm 
Kill 

Constructor & Destructor Documentation

SignalHandling::SignalHandling ( )
protected
SignalHandling::~SignalHandling ( )
protected

Member Function Documentation

void SignalHandling::doCont ( )
protected
void SignalHandling::doKill ( int  )
protected
void SignalHandling::doStop ( int  ,
bool  withcbs = true 
)
protected
CallBackSet& SignalHandling::getCBL ( EvType  )
protected
static void SignalHandling::handle ( int  )
staticprotected
void SignalHandling::handleAlarm ( )
protected
void SignalHandling::handleChld ( )
protected
void SignalHandling::handleConn ( )
protected
void SignalHandling::handleReInit ( )
protected
static void SignalHandling::initClass ( )
static
static void SignalHandling::initFatalSignalHandling ( )
static
static SignalHandling& SignalHandling::SH ( )
staticprotected

Access to a static instance

static void SignalHandling::startNotify ( EvType  ,
const CallBack  
)
static
static void SignalHandling::stopNotify ( EvType  ,
const CallBack  
)
static
static void SignalHandling::stopProcess ( int  ,
bool  friendly = true 
)
static
static void SignalHandling::stopRemote ( const char *  ,
int  ,
bool  friendly = true,
const char *  rshcomm = 0 
)
static

Friends And Related Function Documentation

void DBG::forceCrash ( bool  )
friend

Member Data Documentation

CallBackSet& SignalHandling::alarmcbs_
protected
CallBackSet& SignalHandling::chldcbs_
protected
CallBackSet& SignalHandling::conncbs_
protected
CallBackSet& SignalHandling::contcbs_
protected
CallBackSet& SignalHandling::killcbs_
protected
CallBackSet& SignalHandling::reinitcbs_
protected
CallBackSet& SignalHandling::stopcbs_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019