Talk: integrate the state engine transition diagrams
This commit is contained in:
parent
2cc9648106
commit
1312bc45c9
4 changed files with 1112 additions and 171 deletions
|
|
@ -1162,9 +1162,9 @@
|
|||
</node>
|
||||
</node>
|
||||
<node CREATED="1786299650606" ID="ID_1358348030" MODIFIED="1786299654447" TEXT="state definition">
|
||||
<node BACKGROUND_COLOR="#eee5c3" COLOR="#990000" CREATED="1786506976676" ID="ID_305985132" MODIFIED="1786656379912" TEXT="use of state per slot...">
|
||||
<node COLOR="#338800" CREATED="1786506976676" ID="ID_305985132" MODIFIED="1786660990622" TEXT="use of state per slot...">
|
||||
<arrowlink COLOR="#627a97" DESTINATION="ID_1806019726" ENDARROW="Default" ENDINCLINATION="844;-50;" ID="Arrow_ID_1270577683" STARTARROW="None" STARTINCLINATION="506;72;"/>
|
||||
<icon BUILTIN="flag-yellow"/>
|
||||
<icon BUILTIN="button_ok"/>
|
||||
</node>
|
||||
</node>
|
||||
<node CREATED="1786329171661" ID="ID_652095992" MODIFIED="1786329177583" TEXT="cursor nextShow_">
|
||||
|
|
@ -1307,9 +1307,9 @@
|
|||
</node>
|
||||
<node COLOR="#006699" CREATED="1786245367557" ID="ID_1248853430" MODIFIED="1786643762078" TEXT="Animation, die schreib- und Leseoperationen zeigt..."/>
|
||||
</node>
|
||||
<node BACKGROUND_COLOR="#d2beaf" COLOR="#5c4d6e" CREATED="1785877291601" ID="ID_517600933" MODIFIED="1786466625791" TEXT="Diagramm "State-Ring"">
|
||||
<node COLOR="#338800" CREATED="1785877291601" ID="ID_517600933" MODIFIED="1786660999055" TEXT="Diagramm "State-Ring"">
|
||||
<linktarget COLOR="#c23657" DESTINATION="ID_517600933" ENDARROW="Default" ENDINCLINATION="134;15;" ID="Arrow_ID_670746681" SOURCE="ID_270282240" STARTARROW="None" STARTINCLINATION="23;-122;"/>
|
||||
<icon BUILTIN="hourglass"/>
|
||||
<icon BUILTIN="button_ok"/>
|
||||
<node BACKGROUND_COLOR="#accdc3" COLOR="#3f4015" CREATED="1785877302464" ID="ID_1725774104" MODIFIED="1785880120631" STYLE="fork" TEXT="Ein Schema ist nebenbei im Chat mit Claude "angefallen"">
|
||||
<edge COLOR="#808080" STYLE="bezier" WIDTH="thin"/>
|
||||
<arrowlink COLOR="#339dbd" DESTINATION="ID_1806019726" ENDARROW="Default" ENDINCLINATION="121;0;" ID="Arrow_ID_938057656" STARTARROW="None" STARTINCLINATION="-30;41;"/>
|
||||
|
|
@ -1318,15 +1318,20 @@
|
|||
<node CREATED="1785877324133" ID="ID_578045214" MODIFIED="1785877342463" TEXT="hatte ihn das in Graphviz definieren und nach SVG rendern lassen">
|
||||
<icon BUILTIN="idea"/>
|
||||
</node>
|
||||
<node BACKGROUND_COLOR="#f0d5c5" COLOR="#990033" CREATED="1785877343638" ID="ID_801220717" MODIFIED="1785877347896" TEXT="brauchbar?">
|
||||
<node COLOR="#006699" CREATED="1785877343638" ID="ID_801220717" MODIFIED="1786661002146" TEXT="brauchbar?">
|
||||
<icon BUILTIN="help"/>
|
||||
<node CREATED="1786661006589" ID="ID_1093573746" MODIFIED="1786661048132" TEXT="ja: habs vor dem State-Ring eingebaut"/>
|
||||
<node CREATED="1786661020642" ID="ID_1076990072" MODIFIED="1786661039901" TEXT="sogar sehr wichtig, man muß die State-Engine wenigstenseinmal sehen"/>
|
||||
<node COLOR="#338800" CREATED="1786661049458" ID="ID_1526572846" MODIFIED="1786661056718" TEXT="hab das Layout umgestellt">
|
||||
<icon BUILTIN="button_ok"/>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
<node BACKGROUND_COLOR="#eee5c3" COLOR="#990000" CREATED="1785880050158" ID="ID_1806019726" MODIFIED="1786656371060" TEXT="Diagramm "State-Engine"">
|
||||
</node>
|
||||
<node COLOR="#338800" CREATED="1785880050158" ID="ID_1806019726" MODIFIED="1786660987043" TEXT="Diagramm "State-Engine"">
|
||||
<linktarget COLOR="#339dbd" DESTINATION="ID_1806019726" ENDARROW="Default" ENDINCLINATION="121;0;" ID="Arrow_ID_938057656" SOURCE="ID_1725774104" STARTARROW="None" STARTINCLINATION="-30;41;"/>
|
||||
<linktarget COLOR="#627a97" DESTINATION="ID_1806019726" ENDARROW="Default" ENDINCLINATION="844;-50;" ID="Arrow_ID_1270577683" SOURCE="ID_305985132" STARTARROW="None" STARTINCLINATION="506;72;"/>
|
||||
<icon BUILTIN="flag-yellow"/>
|
||||
<icon BUILTIN="button_ok"/>
|
||||
<node CREATED="1786656669970" HGAP="36" ID="ID_817187689" MODIFIED="1786656686513" TEXT="Diagramm: Beschriftungen vereinfachen..." VSHIFT="9"/>
|
||||
</node>
|
||||
<node COLOR="#338800" CREATED="1785880050158" ID="ID_1123988986" MODIFIED="1786640284601" TEXT="Diagramm "Thread-handoff"">
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,4 +1,44 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 560" font-family="sans-serif">
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
viewBox="0 0 999.99987 829.218"
|
||||
font-family="sans-serif"
|
||||
version="1.1"
|
||||
id="svg30"
|
||||
sodipodi:docname="ring-buffer.svg"
|
||||
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
|
||||
inkscape:export-filename="../state-ring.svg"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96"
|
||||
width="14.58cm"
|
||||
height="12.09cm"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<title
|
||||
id="title30">State progression in the Ringbuffer</title>
|
||||
<sodipodi:namedview
|
||||
id="namedview30"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:zoom="1.5339286"
|
||||
inkscape:cx="293.03841"
|
||||
inkscape:cy="227.84633"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1057"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg30"
|
||||
inkscape:document-units="cm" />
|
||||
<!--
|
||||
Ring-buffer snapshot for the io_uring video demo.
|
||||
A fixed array of RING_SIZ buffers is used cyclically: slot = frameNr % RING_SIZ.
|
||||
|
|
@ -7,105 +47,752 @@
|
|||
nextShow_ (consumption) rests on the slot currently shown, advancing on release
|
||||
This is an illustrative snapshot (START_FRAME = 40, RING_SIZ = 5).
|
||||
-->
|
||||
<defs>
|
||||
<marker id="arrow" markerWidth="9" markerHeight="9" refX="7" refY="4.5"
|
||||
orient="auto" markerUnits="userSpaceOnUse">
|
||||
<path d="M0,0 L9,4.5 L0,9 Z" fill="#333"/>
|
||||
<defs
|
||||
id="defs2">
|
||||
<marker
|
||||
id="arrow"
|
||||
markerWidth="9"
|
||||
markerHeight="9"
|
||||
refX="7"
|
||||
refY="4.5"
|
||||
orient="auto"
|
||||
markerUnits="userSpaceOnUse">
|
||||
<path
|
||||
d="M 0,0 9,4.5 0,9 Z"
|
||||
fill="#333333"
|
||||
id="path1" />
|
||||
</marker>
|
||||
<marker id="arrowRot" markerWidth="10" markerHeight="10" refX="6" refY="5"
|
||||
orient="auto" markerUnits="userSpaceOnUse">
|
||||
<path d="M0,0 L10,5 L0,10 Z" fill="#888"/>
|
||||
<marker
|
||||
id="arrowRot"
|
||||
markerWidth="10"
|
||||
markerHeight="10"
|
||||
refX="6"
|
||||
refY="5"
|
||||
orient="auto"
|
||||
markerUnits="userSpaceOnUse">
|
||||
<path
|
||||
d="M 0,0 10,5 0,10 Z"
|
||||
fill="#888888"
|
||||
id="path2" />
|
||||
</marker>
|
||||
</defs>
|
||||
|
||||
<text x="310" y="34" text-anchor="middle" font-size="18" font-weight="bold">
|
||||
Buffers used as a ring: slot = frameNr % RING_SIZ
|
||||
</text>
|
||||
|
||||
<!-- rotation hint (clockwise) -->
|
||||
<path d="M 395 138 A 130 130 0 0 1 452 300" fill="none" stroke="#bbb"
|
||||
stroke-width="2" stroke-dasharray="4 5" marker-end="url(#arrowRot)"/>
|
||||
<text x="470" y="320" font-size="12" fill="#999">advances</text>
|
||||
|
||||
<!-- ===================== slots ===================== -->
|
||||
<!-- slot 0 : SHOW (frame 40, currently lent to GUI) -->
|
||||
<g>
|
||||
<circle cx="310" cy="120" r="46" fill="#e7d8ff" stroke="#5a2ca0" stroke-width="2.2"/>
|
||||
<text x="310" y="112" text-anchor="middle" font-size="14" font-weight="bold">SHOW</text>
|
||||
<text x="310" y="132" text-anchor="middle" font-size="12" fill="#444">frame 40</text>
|
||||
<text x="372" y="104" text-anchor="middle" font-size="11" fill="#888">slot 0</text>
|
||||
</g>
|
||||
<!-- slot 1 : FEED (frame 41, ready to show) -->
|
||||
<g>
|
||||
<circle cx="452" cy="203" r="46" fill="#d8f0d8" stroke="#3a7a3a" stroke-width="2.2"/>
|
||||
<text x="452" y="199" text-anchor="middle" font-size="14" font-weight="bold">FEED</text>
|
||||
<text x="452" y="219" text-anchor="middle" font-size="12" fill="#444">frame 41</text>
|
||||
<text x="507" y="200" text-anchor="middle" font-size="11" fill="#888">slot 1</text>
|
||||
</g>
|
||||
<!-- slot 2 : READ (frame 42, IO in flight) -->
|
||||
<g>
|
||||
<circle cx="398" cy="371" r="46" fill="#ffedcc" stroke="#b8860b" stroke-width="2.2"/>
|
||||
<text x="398" y="367" text-anchor="middle" font-size="14" font-weight="bold">READ</text>
|
||||
<text x="398" y="387" text-anchor="middle" font-size="12" fill="#444">frame 42</text>
|
||||
<text x="398" y="432" text-anchor="middle" font-size="11" fill="#888">slot 2</text>
|
||||
</g>
|
||||
<!-- slot 3 : READ (frame 43, IO in flight) -->
|
||||
<g>
|
||||
<circle cx="222" cy="371" r="46" fill="#ffedcc" stroke="#b8860b" stroke-width="2.2"/>
|
||||
<text x="222" y="367" text-anchor="middle" font-size="14" font-weight="bold">READ</text>
|
||||
<text x="222" y="387" text-anchor="middle" font-size="12" fill="#444">frame 43</text>
|
||||
<text x="222" y="432" text-anchor="middle" font-size="11" fill="#888">slot 3</text>
|
||||
</g>
|
||||
<!-- slot 4 : FREE (next to be submitted) -->
|
||||
<g>
|
||||
<circle cx="168" cy="203" r="46" fill="#dbe9ff" stroke="#3a5a8a" stroke-width="2.2"/>
|
||||
<text x="168" y="199" text-anchor="middle" font-size="14" font-weight="bold">FREE</text>
|
||||
<text x="168" y="219" text-anchor="middle" font-size="12" fill="#444">—</text>
|
||||
<text x="113" y="200" text-anchor="middle" font-size="11" fill="#888">slot 4</text>
|
||||
</g>
|
||||
|
||||
<!-- center caption -->
|
||||
<text x="310" y="258" text-anchor="middle" font-size="13" fill="#666">buffer_[ ]</text>
|
||||
<text x="310" y="277" text-anchor="middle" font-size="11" fill="#999">RING_SIZ = 5</text>
|
||||
|
||||
<!-- ===================== cursors ===================== -->
|
||||
<!-- nextShow_ -> slot 0 -->
|
||||
<g>
|
||||
<rect x="150" y="52" width="150" height="26" rx="5" fill="#f3ecff" stroke="#5a2ca0"/>
|
||||
<text x="225" y="70" text-anchor="middle" font-size="13" fill="#5a2ca0">
|
||||
nextShow_ = 40
|
||||
</text>
|
||||
<path d="M 278 72 C 300 84, 300 74, 300 96" fill="none" stroke="#5a2ca0"
|
||||
stroke-width="2" marker-end="url(#arrow)"/>
|
||||
</g>
|
||||
<!-- nextRead_ -> slot 4 -->
|
||||
<g>
|
||||
<rect x="18" y="120" width="150" height="26" rx="5" fill="#eaf1fb" stroke="#3a5a8a"/>
|
||||
<text x="93" y="138" text-anchor="middle" font-size="13" fill="#3a5a8a">
|
||||
nextRead_ = 44
|
||||
</text>
|
||||
<path d="M 110 146 C 120 168, 138 168, 150 182" fill="none" stroke="#3a5a8a"
|
||||
stroke-width="2" marker-end="url(#arrow)"/>
|
||||
</g>
|
||||
|
||||
<!-- ===================== legend ===================== -->
|
||||
<g font-size="12" transform="translate(40,478)">
|
||||
<text x="0" y="0" font-weight="bold" font-size="13">States:</text>
|
||||
<rect x="66" y="-11" width="15" height="15" rx="3" fill="#dbe9ff" stroke="#3a5a8a"/>
|
||||
<text x="86" y="1">FREE</text>
|
||||
<rect x="140" y="-11" width="15" height="15" rx="3" fill="#ffedcc" stroke="#b8860b"/>
|
||||
<text x="160" y="1">READ</text>
|
||||
<rect x="216" y="-11" width="15" height="15" rx="3" fill="#d8f0d8" stroke="#3a7a3a"/>
|
||||
<text x="236" y="1">FEED</text>
|
||||
<rect x="292" y="-11" width="15" height="15" rx="3" fill="#e7d8ff" stroke="#5a2ca0"/>
|
||||
<text x="312" y="1">SHOW</text>
|
||||
<rect x="372" y="-11" width="15" height="15" rx="3" fill="#ffd6d6" stroke="#a00000"/>
|
||||
<text x="392" y="1">STOP</text>
|
||||
<metadata
|
||||
id="metadata30">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<cc:license
|
||||
rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" />
|
||||
<dc:title>State progression in the Ringbuffer</dc:title>
|
||||
</cc:Work>
|
||||
<cc:License
|
||||
rdf:about="http://creativecommons.org/licenses/by-sa/4.0/">
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Reproduction" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Distribution" />
|
||||
<cc:requires
|
||||
rdf:resource="http://creativecommons.org/ns#Notice" />
|
||||
<cc:requires
|
||||
rdf:resource="http://creativecommons.org/ns#Attribution" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
|
||||
<cc:requires
|
||||
rdf:resource="http://creativecommons.org/ns#ShareAlike" />
|
||||
</cc:License>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
id="drawing">
|
||||
<path
|
||||
d="M 715.0571,172.11989 A 235.02157,235.05218 0 0 1 818.10502,465.03107"
|
||||
fill="none"
|
||||
stroke="#bbbbbb"
|
||||
stroke-width="2"
|
||||
stroke-dasharray="4, 5"
|
||||
marker-end="url(#arrowRot)"
|
||||
id="path3" />
|
||||
<text
|
||||
x="850.70184"
|
||||
y="501.16031"
|
||||
font-size="21.6957px"
|
||||
fill="#999999"
|
||||
id="text3"
|
||||
style="stroke-width:1"
|
||||
transform="scale(0.99993487,1.0000651)">advances</text>
|
||||
<g
|
||||
id="g6"
|
||||
style="stroke-width:0.553105"
|
||||
transform="matrix(1.8078582,0,0,1.8080937,0.95311217,-77.397037)">
|
||||
<circle
|
||||
cx="310"
|
||||
cy="120"
|
||||
r="46"
|
||||
fill="#e7d8ff"
|
||||
stroke="#5a2ca0"
|
||||
stroke-width="1.21683"
|
||||
id="circle3" />
|
||||
<text
|
||||
x="310"
|
||||
y="112"
|
||||
text-anchor="middle"
|
||||
font-size="14px"
|
||||
font-weight="bold"
|
||||
id="text4"
|
||||
style="stroke-width:0.553105">SHOW</text>
|
||||
<text
|
||||
x="310"
|
||||
y="132"
|
||||
text-anchor="middle"
|
||||
font-size="12px"
|
||||
fill="#444444"
|
||||
id="text5"
|
||||
style="stroke-width:0.553105">frame 40</text>
|
||||
<text
|
||||
x="381.12689"
|
||||
y="104.65192"
|
||||
text-anchor="middle"
|
||||
font-size="11"
|
||||
fill="#888888"
|
||||
id="text6"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:16px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.553105">slot 0</text>
|
||||
</g>
|
||||
<g
|
||||
id="g9"
|
||||
style="stroke-width:0.553105"
|
||||
transform="matrix(1.8078582,0,0,1.8080937,0.95311217,-77.397037)">
|
||||
<circle
|
||||
cx="452"
|
||||
cy="203"
|
||||
r="46"
|
||||
fill="#d8f0d8"
|
||||
stroke="#3a7a3a"
|
||||
stroke-width="1.21683"
|
||||
id="circle6" />
|
||||
<text
|
||||
x="452"
|
||||
y="199"
|
||||
text-anchor="middle"
|
||||
font-size="14px"
|
||||
font-weight="bold"
|
||||
id="text7"
|
||||
style="stroke-width:0.553105">FEED</text>
|
||||
<text
|
||||
x="452"
|
||||
y="219"
|
||||
text-anchor="middle"
|
||||
font-size="12px"
|
||||
fill="#444444"
|
||||
id="text8"
|
||||
style="stroke-width:0.553105">frame 41</text>
|
||||
<text
|
||||
x="524.60187"
|
||||
y="200"
|
||||
text-anchor="middle"
|
||||
font-size="11px"
|
||||
fill="#888888"
|
||||
id="text9"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:16px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.553105">slot 1</text>
|
||||
</g>
|
||||
<g
|
||||
id="g12"
|
||||
style="stroke-width:0.553105"
|
||||
transform="matrix(1.8078582,0,0,1.8080937,0.95311217,-77.397037)">
|
||||
<circle
|
||||
cx="398"
|
||||
cy="371"
|
||||
r="46"
|
||||
fill="#ffedcc"
|
||||
stroke="#b8860b"
|
||||
stroke-width="1.21683"
|
||||
id="circle9" />
|
||||
<text
|
||||
x="398"
|
||||
y="367"
|
||||
text-anchor="middle"
|
||||
font-size="14px"
|
||||
font-weight="bold"
|
||||
id="text10"
|
||||
style="stroke-width:0.553105">READ</text>
|
||||
<text
|
||||
x="398"
|
||||
y="387"
|
||||
text-anchor="middle"
|
||||
font-size="12px"
|
||||
fill="#444444"
|
||||
id="text11"
|
||||
style="stroke-width:0.553105">frame 42</text>
|
||||
<text
|
||||
x="398.65192"
|
||||
y="439.17114"
|
||||
text-anchor="middle"
|
||||
font-size="11"
|
||||
fill="#888888"
|
||||
id="text12"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:16px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.553105">slot 2</text>
|
||||
</g>
|
||||
<g
|
||||
id="g15"
|
||||
style="stroke-width:0.553105"
|
||||
transform="matrix(1.8078582,0,0,1.8080937,0.95311217,-77.397037)">
|
||||
<circle
|
||||
cx="222"
|
||||
cy="371"
|
||||
r="46"
|
||||
fill="#ffedcc"
|
||||
stroke="#b8860b"
|
||||
stroke-width="1.21683"
|
||||
id="circle12" />
|
||||
<text
|
||||
x="222"
|
||||
y="367"
|
||||
text-anchor="middle"
|
||||
font-size="14px"
|
||||
font-weight="bold"
|
||||
id="text13"
|
||||
style="stroke-width:0.553105">READ</text>
|
||||
<text
|
||||
x="222"
|
||||
y="387"
|
||||
text-anchor="middle"
|
||||
font-size="12px"
|
||||
fill="#444444"
|
||||
id="text14"
|
||||
style="stroke-width:0.553105">frame 43</text>
|
||||
<text
|
||||
x="222.65192"
|
||||
y="439.17114"
|
||||
text-anchor="middle"
|
||||
font-size="11"
|
||||
fill="#888888"
|
||||
id="text15"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:16px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.553105">slot 3</text>
|
||||
</g>
|
||||
<g
|
||||
id="g18"
|
||||
style="stroke-width:0.553105"
|
||||
transform="matrix(1.8078582,0,0,1.8080937,0.95311217,-77.397037)">
|
||||
<circle
|
||||
cx="168"
|
||||
cy="203"
|
||||
r="46"
|
||||
fill="#dbe9ff"
|
||||
stroke="#3a5a8a"
|
||||
stroke-width="1.21683"
|
||||
id="circle15" />
|
||||
<text
|
||||
x="168"
|
||||
y="199"
|
||||
text-anchor="middle"
|
||||
font-size="14px"
|
||||
font-weight="bold"
|
||||
id="text16"
|
||||
style="stroke-width:0.553105">FREE</text>
|
||||
<text
|
||||
x="168"
|
||||
y="219"
|
||||
text-anchor="middle"
|
||||
font-size="12px"
|
||||
fill="#444444"
|
||||
id="text17"
|
||||
style="stroke-width:0.553105">—</text>
|
||||
<text
|
||||
x="90.182777"
|
||||
y="198.69617"
|
||||
text-anchor="middle"
|
||||
font-size="11px"
|
||||
fill="#888888"
|
||||
id="text18"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:16px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.553105">slot 4</text>
|
||||
</g>
|
||||
<text
|
||||
x="561.42572"
|
||||
y="423.41733"
|
||||
text-anchor="middle"
|
||||
font-size="11"
|
||||
fill="#999999"
|
||||
id="text20"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:28.9276px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:1"
|
||||
transform="scale(0.99993487,1.0000651)">RING_SIZ = 5</text>
|
||||
<g
|
||||
id="g21"
|
||||
style="stroke-width:0.553105"
|
||||
transform="matrix(1.8078582,0,0,1.8080937,0.95311217,-77.397037)">
|
||||
<rect
|
||||
x="150"
|
||||
y="52"
|
||||
width="150"
|
||||
height="26"
|
||||
rx="5"
|
||||
fill="#f3ecff"
|
||||
stroke="#5a2ca0"
|
||||
id="rect20"
|
||||
style="stroke-width:0.553105" />
|
||||
<text
|
||||
x="225"
|
||||
y="70"
|
||||
text-anchor="middle"
|
||||
font-size="13px"
|
||||
fill="#5a2ca0"
|
||||
id="text21"
|
||||
style="stroke-width:0.553105">nextShow_ = 40</text>
|
||||
<path
|
||||
d="m 278,72 c 22,12 22,2 22,24"
|
||||
fill="none"
|
||||
stroke="#5a2ca0"
|
||||
stroke-width="1.10621"
|
||||
marker-end="url(#arrow)"
|
||||
id="path21" />
|
||||
</g>
|
||||
<g
|
||||
id="g22"
|
||||
style="stroke-width:0.553105"
|
||||
transform="matrix(1.8078582,0,0,1.8080937,0.95311217,-77.397037)">
|
||||
<rect
|
||||
x="18"
|
||||
y="120"
|
||||
width="150"
|
||||
height="26"
|
||||
rx="5"
|
||||
fill="#eaf1fb"
|
||||
stroke="#3a5a8a"
|
||||
id="rect21"
|
||||
style="stroke-width:0.553105" />
|
||||
<text
|
||||
x="93"
|
||||
y="138"
|
||||
text-anchor="middle"
|
||||
font-size="13px"
|
||||
fill="#3a5a8a"
|
||||
id="text22"
|
||||
style="stroke-width:0.553105">nextRead_ = 44</text>
|
||||
<path
|
||||
d="m 110,146 c 10,22 28,22 40,36"
|
||||
fill="none"
|
||||
stroke="#3a5a8a"
|
||||
stroke-width="1.10621"
|
||||
marker-end="url(#arrow)"
|
||||
id="path22" />
|
||||
</g>
|
||||
<g
|
||||
font-size="12px"
|
||||
transform="matrix(1.8078582,0,0,1.8080937,73.26744,786.87175)"
|
||||
id="g28"
|
||||
style="stroke-width:0.553105">
|
||||
<text
|
||||
x="0"
|
||||
y="0"
|
||||
font-weight="bold"
|
||||
font-size="13px"
|
||||
id="text23"
|
||||
style="stroke-width:0.553105">States:</text>
|
||||
<rect
|
||||
x="66"
|
||||
y="-11"
|
||||
width="15"
|
||||
height="15"
|
||||
rx="3"
|
||||
fill="#dbe9ff"
|
||||
stroke="#3a5a8a"
|
||||
id="rect23"
|
||||
style="stroke-width:0.553105" />
|
||||
<text
|
||||
x="86"
|
||||
y="1"
|
||||
id="text24"
|
||||
style="stroke-width:0.553105">FREE</text>
|
||||
<rect
|
||||
x="140"
|
||||
y="-11"
|
||||
width="15"
|
||||
height="15"
|
||||
rx="3"
|
||||
fill="#ffedcc"
|
||||
stroke="#b8860b"
|
||||
id="rect24"
|
||||
style="stroke-width:0.553105" />
|
||||
<text
|
||||
x="160"
|
||||
y="1"
|
||||
id="text25"
|
||||
style="stroke-width:0.553105">READ</text>
|
||||
<rect
|
||||
x="216"
|
||||
y="-11"
|
||||
width="15"
|
||||
height="15"
|
||||
rx="3"
|
||||
fill="#d8f0d8"
|
||||
stroke="#3a7a3a"
|
||||
id="rect25"
|
||||
style="stroke-width:0.553105" />
|
||||
<text
|
||||
x="236"
|
||||
y="1"
|
||||
id="text26"
|
||||
style="stroke-width:0.553105">FEED</text>
|
||||
<rect
|
||||
x="292"
|
||||
y="-11"
|
||||
width="15"
|
||||
height="15"
|
||||
rx="3"
|
||||
fill="#e7d8ff"
|
||||
stroke="#5a2ca0"
|
||||
id="rect26"
|
||||
style="stroke-width:0.553105" />
|
||||
<text
|
||||
x="312"
|
||||
y="1"
|
||||
id="text27"
|
||||
style="stroke-width:0.553105">SHOW</text>
|
||||
<rect
|
||||
x="372"
|
||||
y="-11"
|
||||
width="15"
|
||||
height="15"
|
||||
rx="3"
|
||||
fill="#ffd6d6"
|
||||
stroke="#a00000"
|
||||
id="rect27"
|
||||
style="stroke-width:0.553105" />
|
||||
<text
|
||||
x="392"
|
||||
y="1"
|
||||
id="text28"
|
||||
style="stroke-width:0.553105">STOP</text>
|
||||
</g>
|
||||
<g
|
||||
id="g52"
|
||||
style="display:inline;stroke-width:0.553105"
|
||||
transform="matrix(1.8078582,0,0,1.8080937,0.95311217,-77.397037)">
|
||||
<path
|
||||
d="m 395,138 a 130,130 0 0 1 57,162"
|
||||
fill="none"
|
||||
stroke="#bbbbbb"
|
||||
stroke-width="1.10621"
|
||||
stroke-dasharray="4, 5"
|
||||
marker-end="url(#arrowRot)"
|
||||
id="path4" />
|
||||
<text
|
||||
x="470"
|
||||
y="320"
|
||||
font-size="12px"
|
||||
fill="#999999"
|
||||
id="text19"
|
||||
style="stroke-width:0.553105">advances</text>
|
||||
<circle
|
||||
cx="310"
|
||||
cy="120"
|
||||
r="46"
|
||||
fill="#e7d8ff"
|
||||
stroke="#5a2ca0"
|
||||
stroke-width="1.21683"
|
||||
id="circle19" />
|
||||
<text
|
||||
x="310"
|
||||
y="112"
|
||||
text-anchor="middle"
|
||||
font-size="14px"
|
||||
font-weight="bold"
|
||||
id="text29"
|
||||
style="stroke-width:0.553105">SHOW</text>
|
||||
<text
|
||||
x="310"
|
||||
y="132"
|
||||
text-anchor="middle"
|
||||
font-size="12px"
|
||||
fill="#444444"
|
||||
id="text30"
|
||||
style="stroke-width:0.553105">frame 40</text>
|
||||
<text
|
||||
x="381.12689"
|
||||
y="104.65192"
|
||||
text-anchor="middle"
|
||||
font-size="11"
|
||||
fill="#888888"
|
||||
id="text31"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:16px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.553105">slot 0</text>
|
||||
<circle
|
||||
cx="452"
|
||||
cy="203"
|
||||
r="46"
|
||||
fill="#d8f0d8"
|
||||
stroke="#3a7a3a"
|
||||
stroke-width="1.21683"
|
||||
id="circle31" />
|
||||
<text
|
||||
x="452"
|
||||
y="199"
|
||||
text-anchor="middle"
|
||||
font-size="14px"
|
||||
font-weight="bold"
|
||||
id="text32"
|
||||
style="stroke-width:0.553105">FEED</text>
|
||||
<text
|
||||
x="452"
|
||||
y="219"
|
||||
text-anchor="middle"
|
||||
font-size="12px"
|
||||
fill="#444444"
|
||||
id="text33"
|
||||
style="stroke-width:0.553105">frame 41</text>
|
||||
<text
|
||||
x="524.60187"
|
||||
y="200"
|
||||
text-anchor="middle"
|
||||
font-size="11px"
|
||||
fill="#888888"
|
||||
id="text34"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:16px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.553105">slot 1</text>
|
||||
<circle
|
||||
cx="398"
|
||||
cy="371"
|
||||
r="46"
|
||||
fill="#ffedcc"
|
||||
stroke="#b8860b"
|
||||
stroke-width="1.21683"
|
||||
id="circle34" />
|
||||
<text
|
||||
x="398"
|
||||
y="367"
|
||||
text-anchor="middle"
|
||||
font-size="14px"
|
||||
font-weight="bold"
|
||||
id="text35"
|
||||
style="stroke-width:0.553105">READ</text>
|
||||
<text
|
||||
x="398"
|
||||
y="387"
|
||||
text-anchor="middle"
|
||||
font-size="12px"
|
||||
fill="#444444"
|
||||
id="text36"
|
||||
style="stroke-width:0.553105">frame 42</text>
|
||||
<text
|
||||
x="398.65192"
|
||||
y="439.17114"
|
||||
text-anchor="middle"
|
||||
font-size="11"
|
||||
fill="#888888"
|
||||
id="text37"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:16px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.553105">slot 2</text>
|
||||
<circle
|
||||
cx="222"
|
||||
cy="371"
|
||||
r="46"
|
||||
fill="#ffedcc"
|
||||
stroke="#b8860b"
|
||||
stroke-width="1.21683"
|
||||
id="circle37" />
|
||||
<text
|
||||
x="222"
|
||||
y="367"
|
||||
text-anchor="middle"
|
||||
font-size="14px"
|
||||
font-weight="bold"
|
||||
id="text38"
|
||||
style="stroke-width:0.553105">READ</text>
|
||||
<text
|
||||
x="222"
|
||||
y="387"
|
||||
text-anchor="middle"
|
||||
font-size="12px"
|
||||
fill="#444444"
|
||||
id="text39"
|
||||
style="stroke-width:0.553105">frame 43</text>
|
||||
<text
|
||||
x="222.65192"
|
||||
y="439.17114"
|
||||
text-anchor="middle"
|
||||
font-size="11"
|
||||
fill="#888888"
|
||||
id="text40"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:16px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.553105">slot 3</text>
|
||||
<circle
|
||||
cx="168"
|
||||
cy="203"
|
||||
r="46"
|
||||
fill="#dbe9ff"
|
||||
stroke="#3a5a8a"
|
||||
stroke-width="1.21683"
|
||||
id="circle40" />
|
||||
<text
|
||||
x="168"
|
||||
y="199"
|
||||
text-anchor="middle"
|
||||
font-size="14px"
|
||||
font-weight="bold"
|
||||
id="text41"
|
||||
style="stroke-width:0.553105">FREE</text>
|
||||
<text
|
||||
x="168"
|
||||
y="219"
|
||||
text-anchor="middle"
|
||||
font-size="12px"
|
||||
fill="#444444"
|
||||
id="text42"
|
||||
style="stroke-width:0.553105">—</text>
|
||||
<text
|
||||
x="90.182777"
|
||||
y="198.69617"
|
||||
text-anchor="middle"
|
||||
font-size="11px"
|
||||
fill="#888888"
|
||||
id="text43"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:16px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.553105">slot 4</text>
|
||||
<text
|
||||
x="310"
|
||||
y="277"
|
||||
text-anchor="middle"
|
||||
font-size="11"
|
||||
fill="#999999"
|
||||
id="text44"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:16px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.553105">RING_SIZ = 5</text>
|
||||
<rect
|
||||
x="150"
|
||||
y="52"
|
||||
width="150"
|
||||
height="26"
|
||||
rx="5"
|
||||
fill="#f3ecff"
|
||||
stroke="#5a2ca0"
|
||||
id="rect44"
|
||||
style="stroke-width:0.553105" />
|
||||
<text
|
||||
x="225"
|
||||
y="70"
|
||||
text-anchor="middle"
|
||||
font-size="13px"
|
||||
fill="#5a2ca0"
|
||||
id="text45"
|
||||
style="stroke-width:0.553105">nextShow_ = 40</text>
|
||||
<path
|
||||
d="m 278,72 c 22,12 22,2 22,24"
|
||||
fill="none"
|
||||
stroke="#5a2ca0"
|
||||
stroke-width="1.10621"
|
||||
marker-end="url(#arrow)"
|
||||
id="path45" />
|
||||
<rect
|
||||
x="18"
|
||||
y="120"
|
||||
width="150"
|
||||
height="26"
|
||||
rx="5"
|
||||
fill="#eaf1fb"
|
||||
stroke="#3a5a8a"
|
||||
id="rect45"
|
||||
style="stroke-width:0.553105" />
|
||||
<text
|
||||
x="93"
|
||||
y="138"
|
||||
text-anchor="middle"
|
||||
font-size="13px"
|
||||
fill="#3a5a8a"
|
||||
id="text46"
|
||||
style="stroke-width:0.553105">nextRead_ = 44</text>
|
||||
<path
|
||||
d="m 110,146 c 10,22 28,22 40,36"
|
||||
fill="none"
|
||||
stroke="#3a5a8a"
|
||||
stroke-width="1.10621"
|
||||
marker-end="url(#arrow)"
|
||||
id="path46" />
|
||||
<text
|
||||
x="40"
|
||||
y="478"
|
||||
font-weight="bold"
|
||||
font-size="13px"
|
||||
id="text47"
|
||||
style="stroke-width:0.553105">States:</text>
|
||||
<rect
|
||||
x="106"
|
||||
y="467"
|
||||
width="15"
|
||||
height="15"
|
||||
rx="3"
|
||||
fill="#dbe9ff"
|
||||
stroke="#3a5a8a"
|
||||
id="rect47"
|
||||
style="font-size:12px;stroke-width:0.553105" />
|
||||
<text
|
||||
x="126"
|
||||
y="479"
|
||||
id="text48"
|
||||
style="font-size:12px;stroke-width:0.553105">FREE</text>
|
||||
<rect
|
||||
x="180"
|
||||
y="467"
|
||||
width="15"
|
||||
height="15"
|
||||
rx="3"
|
||||
fill="#ffedcc"
|
||||
stroke="#b8860b"
|
||||
id="rect48"
|
||||
style="font-size:12px;stroke-width:0.553105" />
|
||||
<text
|
||||
x="200"
|
||||
y="479"
|
||||
id="text49"
|
||||
style="font-size:12px;stroke-width:0.553105">READ</text>
|
||||
<rect
|
||||
x="256"
|
||||
y="467"
|
||||
width="15"
|
||||
height="15"
|
||||
rx="3"
|
||||
fill="#d8f0d8"
|
||||
stroke="#3a7a3a"
|
||||
id="rect49"
|
||||
style="font-size:12px;stroke-width:0.553105" />
|
||||
<text
|
||||
x="276"
|
||||
y="479"
|
||||
id="text50"
|
||||
style="font-size:12px;stroke-width:0.553105">FEED</text>
|
||||
<rect
|
||||
x="332"
|
||||
y="467"
|
||||
width="15"
|
||||
height="15"
|
||||
rx="3"
|
||||
fill="#e7d8ff"
|
||||
stroke="#5a2ca0"
|
||||
id="rect50"
|
||||
style="font-size:12px;stroke-width:0.553105" />
|
||||
<text
|
||||
x="352"
|
||||
y="479"
|
||||
id="text51"
|
||||
style="font-size:12px;stroke-width:0.553105">SHOW</text>
|
||||
<rect
|
||||
x="412"
|
||||
y="467"
|
||||
width="15"
|
||||
height="15"
|
||||
rx="3"
|
||||
fill="#ffd6d6"
|
||||
stroke="#a00000"
|
||||
id="rect51"
|
||||
style="font-size:12px;stroke-width:0.553105" />
|
||||
<text
|
||||
x="432"
|
||||
y="479"
|
||||
id="text52"
|
||||
style="font-size:12px;stroke-width:0.553105">STOP</text>
|
||||
</g>
|
||||
</g>
|
||||
<text x="40" y="516" font-size="12" fill="#666">
|
||||
Between the two cursors lie the frames currently in flight (READ) or ready (FEED);
|
||||
</text>
|
||||
<text x="40" y="534" font-size="12" fill="#666">
|
||||
the gap can never exceed RING_SIZ — that is where the back-pressure lives.
|
||||
</text>
|
||||
</svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 24 KiB |
|
|
@ -1,83 +1,332 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 2.42.4 (0)
|
||||
-->
|
||||
|
||||
<!-- Title: BuffState Pages: 1 -->
|
||||
<svg width="762pt" height="210pt"
|
||||
viewBox="0.00 0.00 762.00 209.94" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 205.94)">
|
||||
<title>BuffState</title>
|
||||
<text text-anchor="middle" x="377" y="-186.74" font-family="sans-serif" font-size="14.00">Life-cycle of one buffer »slot«</text>
|
||||
<!-- FREE -->
|
||||
<g id="node1" class="node">
|
||||
<title>FREE</title>
|
||||
<ellipse fill="#dbe9ff" stroke="black" stroke-width="1.4" cx="32.5" cy="-94.44" rx="32.5" ry="32.5"/>
|
||||
<text text-anchor="middle" x="32.5" y="-91.34" font-family="sans-serif" font-size="12.00">FREE</text>
|
||||
|
||||
<svg
|
||||
width="14.58cm"
|
||||
height="12.09cm"
|
||||
viewBox="0 0 499.99993 414.609"
|
||||
version="1.1"
|
||||
id="svg15"
|
||||
sodipodi:docname="state-engine.svg"
|
||||
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
|
||||
inkscape:export-filename="../../state-engine.svg"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<title
|
||||
id="title19">Buffer State Engine</title>
|
||||
<defs
|
||||
id="defs15">
|
||||
<marker
|
||||
style="overflow:visible"
|
||||
id="DartArrow"
|
||||
refX="0"
|
||||
refY="0"
|
||||
orient="auto-start-reverse"
|
||||
inkscape:stockid="Dart arrow"
|
||||
markerWidth="2"
|
||||
markerHeight="2"
|
||||
viewBox="0 0 1 1"
|
||||
inkscape:isstock="true"
|
||||
inkscape:collect="always"
|
||||
preserveAspectRatio="xMidYMid">
|
||||
<path
|
||||
style="fill:context-stroke;fill-rule:evenodd;stroke:none"
|
||||
d="M 0,0 5,-5 -12.5,0 5,5 Z"
|
||||
transform="scale(-0.5)"
|
||||
id="path17" />
|
||||
</marker>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="namedview15"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:document-units="pt"
|
||||
inkscape:zoom="1.405605"
|
||||
inkscape:cx="276.74916"
|
||||
inkscape:cy="231.57288"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1057"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg15" />
|
||||
<g
|
||||
id="states">
|
||||
<text
|
||||
text-anchor="middle"
|
||||
x="249.59398"
|
||||
y="25.655668"
|
||||
font-family="sans-serif"
|
||||
font-size="14px"
|
||||
id="title"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12.098px;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;text-anchor:middle"><tspan
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.7274px;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal"
|
||||
id="tspan19">Life-cycle of one buffer »slot«</tspan></text>
|
||||
<g
|
||||
id="n_FREE"
|
||||
class="node"
|
||||
transform="translate(24.658154,175.59834)">
|
||||
<title
|
||||
id="title2">FREE</title>
|
||||
<circle
|
||||
fill="#dbe9ff"
|
||||
stroke="#000000"
|
||||
stroke-width="1.4"
|
||||
cx="32.5"
|
||||
cy="-94.440002"
|
||||
id="ellipse2"
|
||||
r="32.5" />
|
||||
<text
|
||||
text-anchor="middle"
|
||||
x="32.251896"
|
||||
y="-89.148308"
|
||||
font-family="sans-serif"
|
||||
font-size="12px"
|
||||
id="text2"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:14.5176px;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal">FREE</text>
|
||||
</g>
|
||||
<!-- READ -->
|
||||
<g id="node2" class="node">
|
||||
<title>READ</title>
|
||||
<ellipse fill="#ffedcc" stroke="black" stroke-width="1.4" cx="275.5" cy="-94.44" rx="32.5" ry="32.5"/>
|
||||
<text text-anchor="middle" x="275.5" y="-91.34" font-family="sans-serif" font-size="12.00">READ</text>
|
||||
<g
|
||||
id="n_READ"
|
||||
class="node"
|
||||
transform="translate(24.658154,175.59834)">
|
||||
<title
|
||||
id="title3">READ</title>
|
||||
<circle
|
||||
fill="#ffedcc"
|
||||
stroke="#000000"
|
||||
stroke-width="1.4"
|
||||
cx="275.5"
|
||||
cy="-94.440002"
|
||||
id="ellipse3"
|
||||
r="32.5" />
|
||||
<text
|
||||
text-anchor="middle"
|
||||
x="275.21646"
|
||||
y="-89.148308"
|
||||
font-family="sans-serif"
|
||||
font-size="12px"
|
||||
id="text3"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:14.5176px;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal">READ</text>
|
||||
</g>
|
||||
<!-- FREE->READ -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>FREE->READ</title>
|
||||
<path fill="none" stroke="black" d="M65.01,-94.44C108.04,-94.44 185.27,-94.44 232.99,-94.44"/>
|
||||
<polygon fill="black" stroke="black" points="232.99,-97.94 242.99,-94.44 232.99,-90.94 232.99,-97.94"/>
|
||||
<text text-anchor="start" x="83" y="-108.44" font-family="sans-serif" font-size="10.00">  submit read</text>
|
||||
<text text-anchor="start" x="83" y="-97.44" font-family="sans-serif" font-size="10.00">  addNextReadSubmissions()</text>
|
||||
<g
|
||||
id="trans1">
|
||||
<path
|
||||
fill="none"
|
||||
stroke="#000000"
|
||||
d="m 87.085885,80.512765 c 43.030005,0 120.260005,0 167.980005,0"
|
||||
id="path4"
|
||||
style="marker-end:url(#DartArrow)" />
|
||||
<text
|
||||
text-anchor="start"
|
||||
x="106.36691"
|
||||
y="70.385902"
|
||||
font-family="sans-serif"
|
||||
font-size="10px"
|
||||
id="text4"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12.098px;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal"> submit read</text>
|
||||
</g>
|
||||
<!-- FEED -->
|
||||
<g id="node3" class="node">
|
||||
<title>FEED</title>
|
||||
<ellipse fill="#d8f0d8" stroke="black" stroke-width="1.4" cx="503.5" cy="-146.44" rx="32.5" ry="32.5"/>
|
||||
<text text-anchor="middle" x="503.5" y="-143.34" font-family="sans-serif" font-size="12.00">FEED</text>
|
||||
<g
|
||||
id="n_FEED"
|
||||
class="node"
|
||||
transform="translate(-67.657974,376.80046)">
|
||||
<title
|
||||
id="title5">FEED</title>
|
||||
<circle
|
||||
fill="#d8f0d8"
|
||||
stroke="#000000"
|
||||
stroke-width="1.4"
|
||||
cx="503.5"
|
||||
cy="-146.44"
|
||||
id="ellipse5"
|
||||
r="32.5" />
|
||||
<text
|
||||
text-anchor="middle"
|
||||
x="503.21646"
|
||||
y="-141.14832"
|
||||
font-family="sans-serif"
|
||||
font-size="12px"
|
||||
id="text6"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:14.5176px;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal">FEED</text>
|
||||
</g>
|
||||
<!-- READ->FEED -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>READ->FEED</title>
|
||||
<path fill="none" stroke="black" d="M307.45,-101.56C347.49,-110.77 417.35,-126.84 461.69,-137.05"/>
|
||||
<polygon fill="black" stroke="black" points="461.03,-140.49 471.56,-139.32 462.6,-133.67 461.03,-140.49"/>
|
||||
<text text-anchor="start" x="326" y="-147.44" font-family="sans-serif" font-size="10.00">  read completed OK</text>
|
||||
<text text-anchor="start" x="326" y="-136.44" font-family="sans-serif" font-size="10.00">  handleCompletedRead()</text>
|
||||
<g
|
||||
id="trans2">
|
||||
<path
|
||||
fill="none"
|
||||
stroke="#000000"
|
||||
d="m 319.19681,114.06351 83.22759,78.77542"
|
||||
id="path6"
|
||||
style="marker-end:url(#DartArrow)"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<text
|
||||
text-anchor="start"
|
||||
x="349.29718"
|
||||
y="130.00645"
|
||||
font-family="sans-serif"
|
||||
font-size="10px"
|
||||
id="text7"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12.098px;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal"> read completed OK</text>
|
||||
</g>
|
||||
<!-- STOP -->
|
||||
<g id="node5" class="node">
|
||||
<title>STOP</title>
|
||||
<ellipse fill="#ffd6d6" stroke="black" stroke-width="1.4" cx="503.5" cy="-61.44" rx="30.5" ry="30.5"/>
|
||||
<ellipse fill="none" stroke="black" stroke-width="1.4" cx="503.5" cy="-61.44" rx="34.5" ry="34.5"/>
|
||||
<text text-anchor="middle" x="503.5" y="-58.34" font-family="sans-serif" font-size="12.00">STOP</text>
|
||||
<g
|
||||
id="n_STOP"
|
||||
class="node"
|
||||
transform="translate(-243.89786,291.80046)">
|
||||
<title
|
||||
id="title8">STOP</title>
|
||||
<circle
|
||||
fill="#ffd6d6"
|
||||
stroke="#000000"
|
||||
stroke-width="1.4"
|
||||
cx="503.5"
|
||||
cy="-61.439999"
|
||||
id="ellipse8"
|
||||
r="30.5" />
|
||||
<circle
|
||||
fill="none"
|
||||
stroke="#000000"
|
||||
stroke-width="1.4"
|
||||
cx="503.5"
|
||||
cy="-61.439999"
|
||||
id="ellipse9"
|
||||
r="34.5" />
|
||||
<text
|
||||
text-anchor="middle"
|
||||
x="503.26962"
|
||||
y="-56.155396"
|
||||
font-family="sans-serif"
|
||||
font-size="12px"
|
||||
id="text9"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:14.5176px;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal">STOP</text>
|
||||
</g>
|
||||
<!-- READ->STOP -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>READ->STOP</title>
|
||||
<path fill="none" stroke="#a00000" d="M307.92,-89.85C347.22,-84.11 414.71,-74.26 458.97,-67.79"/>
|
||||
<polygon fill="#a00000" stroke="#a00000" points="459.75,-71.22 469.14,-66.31 458.74,-64.29 459.75,-71.22"/>
|
||||
<text text-anchor="middle" x="388.5" y="-89.44" font-family="sans-serif" font-size="10.00" fill="#a00000">  short read / EOF  </text>
|
||||
<g
|
||||
id="trans2b">
|
||||
<path
|
||||
fill="none"
|
||||
stroke="#a00000"
|
||||
d="m 291.90741,119.31784 -16.7975,65.95858"
|
||||
id="path9"
|
||||
style="marker-end:url(#DartArrow)"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<text
|
||||
text-anchor="middle"
|
||||
x="229.81686"
|
||||
y="130.70351"
|
||||
font-family="sans-serif"
|
||||
font-size="10px"
|
||||
fill="#a00000"
|
||||
id="text10"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12.098px;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal"> short read / EOF </text>
|
||||
</g>
|
||||
<!-- SHOW -->
|
||||
<g id="node4" class="node">
|
||||
<title>SHOW</title>
|
||||
<ellipse fill="#e7d8ff" stroke="black" stroke-width="1.4" cx="721.5" cy="-146.44" rx="32.5" ry="32.5"/>
|
||||
<text text-anchor="middle" x="721.5" y="-143.34" font-family="sans-serif" font-size="12.00">SHOW</text>
|
||||
<g
|
||||
id="n_SHOW"
|
||||
class="node"
|
||||
transform="translate(-391.73278,519.04016)">
|
||||
<title
|
||||
id="title10">SHOW</title>
|
||||
<circle
|
||||
fill="#e7d8ff"
|
||||
stroke="#000000"
|
||||
stroke-width="1.4"
|
||||
cx="721.5"
|
||||
cy="-146.44"
|
||||
id="ellipse10"
|
||||
r="32.5" />
|
||||
<text
|
||||
text-anchor="middle"
|
||||
x="721.25897"
|
||||
y="-141.1554"
|
||||
font-family="sans-serif"
|
||||
font-size="12px"
|
||||
id="text11"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:14.5176px;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal">SHOW</text>
|
||||
</g>
|
||||
<!-- FEED->SHOW -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>FEED->SHOW</title>
|
||||
<path fill="none" stroke="black" d="M536.37,-146.44C574.13,-146.44 637.14,-146.44 678.76,-146.44"/>
|
||||
<polygon fill="black" stroke="black" points="678.85,-149.94 688.85,-146.44 678.85,-142.94 678.85,-149.94"/>
|
||||
<text text-anchor="start" x="556" y="-160.44" font-family="sans-serif" font-size="10.00">  publish frame</text>
|
||||
<text text-anchor="start" x="556" y="-149.44" font-family="sans-serif" font-size="10.00">  maybeDisplayFrame()</text>
|
||||
<g
|
||||
id="trans3">
|
||||
<path
|
||||
fill="none"
|
||||
stroke="#000000"
|
||||
d="m 415.77635,262.20872 -54.50862,73.59436"
|
||||
id="path11"
|
||||
style="marker-end:url(#DartArrow)"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<text
|
||||
text-anchor="start"
|
||||
x="392.15256"
|
||||
y="311.47485"
|
||||
font-family="sans-serif"
|
||||
font-size="10px"
|
||||
id="text12"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12.098px;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal"> publish frame</text>
|
||||
</g>
|
||||
<!-- SHOW->FREE -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>SHOW->FREE</title>
|
||||
<path fill="none" stroke="#5a2ca0" d="M698.02,-123.55C665.91,-92.66 603.51,-39.12 538,-18.44 369.44,34.78 157.11,-41.15 71.68,-77.22"/>
|
||||
<polygon fill="#5a2ca0" stroke="#5a2ca0" points="70.19,-74.05 62.37,-81.21 72.94,-80.49 70.19,-74.05"/>
|
||||
<text text-anchor="start" x="328.5" y="-19.44" font-family="sans-serif" font-size="10.00" fill="#5a2ca0">  GUI released frame</text>
|
||||
<text text-anchor="start" x="328.5" y="-8.44" font-family="sans-serif" font-size="10.00" fill="#5a2ca0">  (toDisplay_ == nullptr)</text>
|
||||
<g
|
||||
id="trans4">
|
||||
<path
|
||||
fill="none"
|
||||
stroke="#5a2ca0"
|
||||
d="M 289.50247,374.18644 C 66.708689,375.12887 57.253166,296.77982 56.31298,127.42887"
|
||||
id="path13"
|
||||
style="marker-end:url(#DartArrow)"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<text
|
||||
text-anchor="start"
|
||||
x="93.769241"
|
||||
y="367.90442"
|
||||
font-family="sans-serif"
|
||||
font-size="10px"
|
||||
fill="#5a2ca0"
|
||||
id="text14"
|
||||
style="font-size:10px;font-family:sans-serif;text-align:center;text-anchor:middle;fill:#5a2ca0"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan17"
|
||||
x="93.769241"
|
||||
y="367.90442"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12.098px;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal">GUI released frame</tspan><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan18"
|
||||
x="93.769241"
|
||||
y="383.02692"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12.098px;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal"> (toDisplay_ == nullptr)</tspan></text>
|
||||
</g>
|
||||
</g>
|
||||
<metadata
|
||||
id="metadata19">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<cc:license
|
||||
rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" />
|
||||
<dc:title>Buffer State Engine</dc:title>
|
||||
<dc:description>State transitions applied for each buffer slot</dc:description>
|
||||
</cc:Work>
|
||||
<cc:License
|
||||
rdf:about="http://creativecommons.org/licenses/by-sa/4.0/">
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Reproduction" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Distribution" />
|
||||
<cc:requires
|
||||
rdf:resource="http://creativecommons.org/ns#Notice" />
|
||||
<cc:requires
|
||||
rdf:resource="http://creativecommons.org/ns#Attribution" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
|
||||
<cc:requires
|
||||
rdf:resource="http://creativecommons.org/ns#ShareAlike" />
|
||||
</cc:License>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
</svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 12 KiB |
Loading…
Reference in a new issue