gstlal 1.13.0
Loading...
Searching...
No Matches
python.simplehandler.OneTimeSignalHandler Class Reference
Inheritance diagram for python.simplehandler.OneTimeSignalHandler:
Collaboration diagram for python.simplehandler.OneTimeSignalHandler:

Public Member Functions

 __init__ (self, pipeline, signals=[signal.SIGINT, signal.SIGTERM])
 do_on_call (self, signum, frame)
 __call__ (self, signum, frame)

Public Attributes

 pipeline = pipeline
int count = 0

Detailed Description

A helper class for application signal handling.  Use this to help your
application to cleanly shutdown gstreamer pipelines when responding to e.g.,
ctrl+c.

Definition at line 137 of file simplehandler.py.

Constructor & Destructor Documentation

◆ __init__()

python.simplehandler.OneTimeSignalHandler.__init__ ( self,
pipeline,
signals = [signal.SIGINT, signal.SIGTERM] )

Definition at line 143 of file simplehandler.py.

Member Function Documentation

◆ __call__()

python.simplehandler.OneTimeSignalHandler.__call__ ( self,
signum,
frame )

Definition at line 155 of file simplehandler.py.

◆ do_on_call()

python.simplehandler.OneTimeSignalHandler.do_on_call ( self,
signum,
frame )
Over ride this for your subclass

Definition at line 149 of file simplehandler.py.

Member Data Documentation

◆ count

python.simplehandler.OneTimeSignalHandler.count = 0

Definition at line 145 of file simplehandler.py.

◆ pipeline

python.simplehandler.OneTimeSignalHandler.pipeline = pipeline

Definition at line 144 of file simplehandler.py.


The documentation for this class was generated from the following file: