Skip to content

Commit e9ea25c

Browse files
committed
deploy: 3947494
1 parent 2edfdd4 commit e9ea25c

27 files changed

Lines changed: 65 additions & 23 deletions

master/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 26d55bb3ceef6b30795ea534f7b46de6
3+
config: 7e4261d78c827700da0b005d4fb87ed8
44
tags: 645f666f9bcd5a90fca523b33c5a78b7
1.7 KB
Binary file not shown.
2.33 KB
Binary file not shown.

master/_modules/epicsdbbuilder/recordbase.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>epicsdbbuilder.recordbase &mdash; pythonSoftIOC 4.5.0+15.g4388c69 documentation</title>
6+
<title>epicsdbbuilder.recordbase &mdash; pythonSoftIOC 4.5.0+16.g3947494 documentation</title>
77
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
88
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
99
<link rel="stylesheet" href="../../_static/theme_overrides.css" type="text/css" />

master/_modules/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>Overview: module code &mdash; pythonSoftIOC 4.5.0+15.g4388c69 documentation</title>
6+
<title>Overview: module code &mdash; pythonSoftIOC 4.5.0+16.g3947494 documentation</title>
77
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
88
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
99
<link rel="stylesheet" href="../_static/theme_overrides.css" type="text/css" />

master/_modules/softioc/asyncio_dispatcher.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>softioc.asyncio_dispatcher &mdash; pythonSoftIOC 4.5.0+15.g4388c69 documentation</title>
6+
<title>softioc.asyncio_dispatcher &mdash; pythonSoftIOC 4.5.0+16.g3947494 documentation</title>
77
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
88
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
99
<link rel="stylesheet" href="../../_static/theme_overrides.css" type="text/css" />
@@ -95,6 +95,7 @@ <h1>Source code for softioc.asyncio_dispatcher</h1><div class="highlight"><pre>
9595
<span class="kn">import</span> <span class="nn">logging</span>
9696
<span class="kn">import</span> <span class="nn">threading</span>
9797
<span class="kn">import</span> <span class="nn">atexit</span>
98+
<span class="kn">import</span> <span class="nn">signal</span>
9899

99100
<div class="viewcode-block" id="AsyncioDispatcher"><a class="viewcode-back" href="../../reference/api.html#softioc.asyncio_dispatcher.AsyncioDispatcher">[docs]</a><span class="k">class</span> <span class="nc">AsyncioDispatcher</span><span class="p">:</span>
100101
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">loop</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">debug</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
@@ -140,6 +141,17 @@ <h1>Source code for softioc.asyncio_dispatcher</h1><div class="highlight"><pre>
140141

141142
<span class="bp">self</span><span class="o">.</span><span class="n">__shutdown</span><span class="p">()</span>
142143

144+
<span class="k">def</span> <span class="nf">wait_for_quit</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
145+
<span class="n">stop_event</span> <span class="o">=</span> <span class="n">threading</span><span class="o">.</span><span class="n">Event</span><span class="p">()</span>
146+
147+
<span class="k">def</span> <span class="nf">signal_handler</span><span class="p">(</span><span class="n">signum</span><span class="p">,</span> <span class="n">frame</span><span class="p">):</span>
148+
<span class="n">stop_event</span><span class="o">.</span><span class="n">set</span><span class="p">()</span>
149+
150+
<span class="n">signal</span><span class="o">.</span><span class="n">signal</span><span class="p">(</span><span class="n">signal</span><span class="o">.</span><span class="n">SIGINT</span><span class="p">,</span> <span class="n">signal_handler</span><span class="p">)</span>
151+
<span class="n">signal</span><span class="o">.</span><span class="n">signal</span><span class="p">(</span><span class="n">signal</span><span class="o">.</span><span class="n">SIGTERM</span><span class="p">,</span> <span class="n">signal_handler</span><span class="p">)</span>
152+
153+
<span class="n">stop_event</span><span class="o">.</span><span class="n">wait</span><span class="p">()</span>
154+
143155
<span class="k">async</span> <span class="k">def</span> <span class="nf">__inloop</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">started</span><span class="p">):</span>
144156
<span class="bp">self</span><span class="o">.</span><span class="n">loop</span> <span class="o">=</span> <span class="n">asyncio</span><span class="o">.</span><span class="n">get_running_loop</span><span class="p">()</span>
145157
<span class="bp">self</span><span class="o">.</span><span class="n">__interrupt</span> <span class="o">=</span> <span class="n">asyncio</span><span class="o">.</span><span class="n">Event</span><span class="p">()</span>

master/_modules/softioc/builder.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>softioc.builder &mdash; pythonSoftIOC 4.5.0+15.g4388c69 documentation</title>
6+
<title>softioc.builder &mdash; pythonSoftIOC 4.5.0+16.g3947494 documentation</title>
77
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
88
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
99
<link rel="stylesheet" href="../../_static/theme_overrides.css" type="text/css" />

master/_modules/softioc/device.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>softioc.device &mdash; pythonSoftIOC 4.5.0+15.g4388c69 documentation</title>
6+
<title>softioc.device &mdash; pythonSoftIOC 4.5.0+16.g3947494 documentation</title>
77
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
88
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
99
<link rel="stylesheet" href="../../_static/theme_overrides.css" type="text/css" />

master/_modules/softioc/softioc.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>softioc.softioc &mdash; pythonSoftIOC 4.5.0+15.g4388c69 documentation</title>
6+
<title>softioc.softioc &mdash; pythonSoftIOC 4.5.0+16.g3947494 documentation</title>
77
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
88
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
99
<link rel="stylesheet" href="../../_static/theme_overrides.css" type="text/css" />
@@ -444,6 +444,15 @@ <h1>Source code for softioc.softioc</h1><div class="highlight"><pre>
444444

445445
<span class="k">if</span> <span class="n">call_exit</span><span class="p">:</span>
446446
<span class="n">safeEpicsExit</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span></div>
447+
448+
449+
<div class="viewcode-block" id="non_interactive_ioc"><a class="viewcode-back" href="../../reference/api.html#softioc.softioc.non_interactive_ioc">[docs]</a><span class="k">def</span> <span class="nf">non_interactive_ioc</span><span class="p">():</span>
450+
<span class="sd">&#39;&#39;&#39;Function to run the IOC in non-interactive mode. This mode is useful for</span>
451+
<span class="sd"> running the IOC as a background process without user interaction.</span>
452+
<span class="sd"> This function expects a stop signal. When it receives one, the IOC stops.</span>
453+
<span class="sd"> &#39;&#39;&#39;</span>
454+
<span class="n">device</span><span class="o">.</span><span class="n">dispatcher</span><span class="o">.</span><span class="n">wait_for_quit</span><span class="p">()</span>
455+
<span class="n">safeEpicsExit</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span></div>
447456
</pre></div>
448457

449458
</div>

master/_sources/reference/api.rst.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ Test Facilities`_ documentation for more details of each function.
120120
.. autofunction:: generalTimeReport
121121
.. autofunction:: eltc
122122

123+
.. autofunction:: non_interactive_ioc
124+
125+
When used with a service manager, use python's -u option or the environment
126+
variable PYTHONUNBUFFERED=TRUE. This ensures that python output, i.e. stdout
127+
and stderr streams, is sent directly to the terminal.
128+
123129
.. attribute:: exit
124130

125131
Displaying this value will invoke ``epicsExit()`` causing the IOC to

0 commit comments

Comments
 (0)