|
w11 - cpp 0.794
Backend server for Rlink and w11
|
FIXME_docs. More...
#include <RtclSignalAction.hpp>
Public Member Functions | |
| bool | SetAction (int signum, Tcl_Obj *pobj, RerrMsg &emsg) |
| FIXME_docs. | |
| bool | GetAction (int signum, Tcl_Obj *&pobj, RerrMsg &emsg) |
| FIXME_docs. | |
| bool | ClearAction (int signum, RerrMsg &emsg) |
| FIXME_docs. | |
Static Public Member Functions | |
| static bool | Init (Tcl_Interp *interp, RerrMsg &emsg) |
| FIXME_docs. | |
| static RtclSignalAction * | Obj () |
| FIXME_docs. | |
Protected Member Functions | |
| bool | ValidSignal (int signum, RerrMsg &emsg) |
| FIXME_docs. | |
| void | TclChannelHandler (int mask) |
| FIXME_docs. | |
Static Protected Member Functions | |
| static void | SignalHandler (int signum) |
| FIXME_docs. | |
| static void | ThunkTclChannelHandler (ClientData cdata, int mask) |
| FIXME_docs. | |
| static void | ThunkTclExitProc (ClientData cdata) |
| FIXME_docs. | |
Protected Attributes | |
| Tcl_Interp * | fpInterp |
| Tcl interpreter used. | |
| int | fFdPipeRead |
| attn pipe read fd | |
| int | fFdPipeWrite |
| attn pipe write fd | |
| Tcl_Channel | fShuttleChn |
| Tcl channel. | |
| bool | fActionSet [32] |
| true if SetAction() done | |
| RtclOPtr | fpScript [32] |
| action scripts | |
| struct sigaction | fOldAction [32] |
| original sigaction | |
Private Member Functions | |
| RtclSignalAction (Tcl_Interp *interp) | |
| constructor | |
| ~RtclSignalAction () | |
| Destructor. | |
Static Private Attributes | |
| static RtclSignalAction * | fpObj = nullptr |
| pointer to singleton | |
FIXME_docs.
Definition at line 28 of file RtclSignalAction.hpp.
|
private |
constructor
Definition at line 211 of file RtclSignalAction.cpp.
References fFdPipeRead, fFdPipeWrite, fShuttleChn, and ThunkTclChannelHandler().
|
private |
Destructor.
Definition at line 243 of file RtclSignalAction.cpp.
References ClearAction(), and fActionSet.
|
static |
FIXME_docs.
Definition at line 43 of file RtclSignalAction.cpp.
References fpObj, Retro::RerrMsg::Init(), and ThunkTclExitProc().
Referenced by Retro::RtclSystem::SignalAction().
|
static |
FIXME_docs.
Definition at line 66 of file RtclSignalAction.cpp.
References fpObj.
Referenced by Retro::RtclSystem::SignalAction().
| bool Retro::RtclSignalAction::SetAction | ( | int | signum, |
| Tcl_Obj * | pobj, | ||
| RerrMsg & | emsg | ||
| ) |
FIXME_docs.
Definition at line 75 of file RtclSignalAction.cpp.
References ClearAction(), fActionSet, fOldAction, fpScript, Retro::RerrMsg::InitErrno(), SignalHandler(), and ValidSignal().
Referenced by Retro::RtclSystem::SignalAction().
| bool Retro::RtclSignalAction::GetAction | ( | int | signum, |
| Tcl_Obj *& | pobj, | ||
| RerrMsg & | emsg | ||
| ) |
FIXME_docs.
Definition at line 97 of file RtclSignalAction.cpp.
References fActionSet, fpScript, Retro::RerrMsg::Init(), and ValidSignal().
Referenced by Retro::RtclSystem::SignalAction().
| bool Retro::RtclSignalAction::ClearAction | ( | int | signum, |
| RerrMsg & | emsg | ||
| ) |
FIXME_docs.
Definition at line 112 of file RtclSignalAction.cpp.
References fActionSet, fOldAction, fpScript, Retro::RerrMsg::Init(), Retro::RerrMsg::InitErrno(), and ValidSignal().
Referenced by SetAction(), Retro::RtclSystem::SignalAction(), and ~RtclSignalAction().
|
protected |
FIXME_docs.
Definition at line 133 of file RtclSignalAction.cpp.
References Retro::RerrMsg::Init().
Referenced by ClearAction(), GetAction(), and SetAction().
|
protected |
FIXME_docs.
Definition at line 154 of file RtclSignalAction.cpp.
References fpInterp, fpScript, and fShuttleChn.
Referenced by ThunkTclChannelHandler().
|
staticprotected |
FIXME_docs.
Definition at line 175 of file RtclSignalAction.cpp.
References fFdPipeWrite, and fpObj.
Referenced by SetAction().
|
staticprotected |
FIXME_docs.
Definition at line 192 of file RtclSignalAction.cpp.
References fpObj, and TclChannelHandler().
Referenced by RtclSignalAction().
|
staticprotected |
FIXME_docs.
Definition at line 201 of file RtclSignalAction.cpp.
References fpObj.
Referenced by Init().
|
protected |
Tcl interpreter used.
Definition at line 50 of file RtclSignalAction.hpp.
Referenced by TclChannelHandler().
|
protected |
attn pipe read fd
Definition at line 51 of file RtclSignalAction.hpp.
Referenced by RtclSignalAction().
|
protected |
attn pipe write fd
Definition at line 52 of file RtclSignalAction.hpp.
Referenced by RtclSignalAction(), and SignalHandler().
|
protected |
Tcl channel.
Definition at line 53 of file RtclSignalAction.hpp.
Referenced by RtclSignalAction(), and TclChannelHandler().
|
protected |
true if SetAction() done
Definition at line 54 of file RtclSignalAction.hpp.
Referenced by ClearAction(), GetAction(), SetAction(), and ~RtclSignalAction().
|
protected |
action scripts
Definition at line 55 of file RtclSignalAction.hpp.
Referenced by ClearAction(), GetAction(), SetAction(), and TclChannelHandler().
|
protected |
original sigaction
Definition at line 56 of file RtclSignalAction.hpp.
Referenced by ClearAction(), and SetAction().
|
staticprivate |
pointer to singleton
Definition at line 59 of file RtclSignalAction.hpp.
Referenced by Init(), Obj(), SignalHandler(), ThunkTclChannelHandler(), and ThunkTclExitProc().