OpendTect  7.0
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 initFatalSignalHandling ()
 
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 Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Protected Member Functions

 SignalHandling ()
 
 ~SignalHandling ()
 
void doCont ()
 
void doKill (int)
 
void doStop (int, bool withcbs=true)
 
CallBackSetgetCBL (EvType)
 
void handleAlarm ()
 
void handleChld ()
 
void handleConn ()
 
void handleReInit ()
 

Static Protected Member Functions

static void handle (int)
 
static SignalHandlingSH ()
 

Protected Attributes

CallBackSetalarmcbs_
 
CallBackSetchldcbs_
 
CallBackSetconncbs_
 
CallBackSetcontcbs_
 
CallBackSetkillcbs_
 
CallBackSetreinitcbs_
 
CallBackSetstopcbs_
 

Friends

void DBG::forceCrash (bool)
 

Additional Inherited Members

- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 

Detailed Description

Asynchronous event handling and notification.

<>

Member Enumeration Documentation

◆ EvType

Enumerator
ConnClose 
ChldStop 
ReInit 
Stop 
Cont 
Alarm 
Kill 

Constructor & Destructor Documentation

◆ SignalHandling()

SignalHandling::SignalHandling ( )
protected

◆ ~SignalHandling()

SignalHandling::~SignalHandling ( )
protected

Member Function Documentation

◆ doCont()

void SignalHandling::doCont ( )
protected

◆ doKill()

void SignalHandling::doKill ( int  )
protected

◆ doStop()

void SignalHandling::doStop ( int  ,
bool  withcbs = true 
)
protected

◆ getCBL()

CallBackSet& SignalHandling::getCBL ( EvType  )
protected

◆ handle()

static void SignalHandling::handle ( int  )
staticprotected

◆ handleAlarm()

void SignalHandling::handleAlarm ( )
protected

◆ handleChld()

void SignalHandling::handleChld ( )
protected

◆ handleConn()

void SignalHandling::handleConn ( )
protected

◆ handleReInit()

void SignalHandling::handleReInit ( )
protected

◆ initClass()

static void SignalHandling::initClass ( )
static

◆ initFatalSignalHandling()

static void SignalHandling::initFatalSignalHandling ( )
static

◆ SH()

static SignalHandling& SignalHandling::SH ( )
staticprotected

Access to a static instance

◆ startNotify()

static void SignalHandling::startNotify ( EvType  ,
const CallBack  
)
static

◆ stopNotify()

static void SignalHandling::stopNotify ( EvType  ,
const CallBack  
)
static

◆ stopProcess()

static void SignalHandling::stopProcess ( int  ,
bool  friendly = true 
)
static

◆ stopRemote()

static void SignalHandling::stopRemote ( const char *  ,
int  ,
bool  friendly = true,
const char *  rshcomm = 0 
)
static

Friends And Related Function Documentation

◆ DBG::forceCrash

void DBG::forceCrash ( bool  )
friend

Member Data Documentation

◆ alarmcbs_

CallBackSet& SignalHandling::alarmcbs_
protected

◆ chldcbs_

CallBackSet& SignalHandling::chldcbs_
protected

◆ conncbs_

CallBackSet& SignalHandling::conncbs_
protected

◆ contcbs_

CallBackSet& SignalHandling::contcbs_
protected

◆ killcbs_

CallBackSet& SignalHandling::killcbs_
protected

◆ reinitcbs_

CallBackSet& SignalHandling::reinitcbs_
protected

◆ stopcbs_

CallBackSet& SignalHandling::stopcbs_
protected

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