Statistics
| Branch: | Revision:

urtware / doc / statediagrams / publisher / urtPublisherInit.svg @ 35c9457f

History | View | Annotate | Download (8.028 KB)

1
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="554px" preserveAspectRatio="none" style="width:714px;height:554px;" version="1.1" viewBox="0 0 714 554" width="714px" zoomAndPan="magnify"><defs><filter height="300%" id="fghs0yzur5onb" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><text fill="#000000" font-family="sans-serif" font-size="18" font-weight="bold" lengthAdjust="spacingAndGlyphs" textLength="89" x="311.5" y="26.708">µRtWare</text><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacingAndGlyphs" textLength="150" x="281" y="47.6611">urtPublisherInit()</text><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacingAndGlyphs" textLength="0" x="359" y="68.6143"/><ellipse cx="344" cy="82.8594" fill="#000000" filter="url(#fghs0yzur5onb)" rx="10" ry="10" style="stroke: none; stroke-width: 1.0;"/><rect fill="#FEFECE" filter="url(#fghs0yzur5onb)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="131" x="278.5" y="112.8594"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="111" x="288.5" y="133.998">initialize members</text><rect fill="#FEFECE" filter="url(#fghs0yzur5onb)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="80" x="304" y="215.2305"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="60" x="314" y="236.3691">lock topic</text><rect fill="#FFFFFF" filter="url(#fghs0yzur5onb)" height="145.5859" style="stroke: #000000; stroke-width: 2.0;" width="668" x="10" y="260.001"/><path d="M167,261.001 L167,269.2979 L157,279.2979 L10,279.2979 " fill="none" style="stroke: #000000; stroke-width: 2.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="147" x="13" y="273.9961">contribute messages</text><rect fill="#FEFECE" filter="url(#fghs0yzur5onb)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="475" x="106.5" y="296.2979"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="20" x="116.5" y="317.4365">set</text><text fill="#000000" font-family="monospace" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="28" x="140.5" y="317.4365">next</text><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="399" x="172.5" y="317.4365">pointer of topic's latest message to first message to contribute</text><rect fill="#FEFECE" filter="url(#fghs0yzur5onb)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="648" x="20" y="359.6182"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="20" x="30" y="380.7568">set</text><text fill="#000000" font-family="monospace" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="28" x="54" y="380.7568">next</text><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="572" x="86" y="380.7568">pointer of last message to contribute to message formerly after the topic's latest message</text><rect fill="#FEFECE" filter="url(#fghs0yzur5onb)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="96" x="296" y="425.5869"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="76" x="306" y="446.7256">unlock topic</text><polygon fill="#FEFECE" filter="url(#fghs0yzur5onb)" points="274,166.8281,414,166.8281,426,178.8281,414,190.8281,274,190.8281,262,178.8281,274,166.8281" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="20" x="348" y="201.0386">yes</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="140" x="274" y="182.6362">Messages to contribute?</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="14" x="426" y="176.2339">no</text><polygon fill="#FEFECE" filter="url(#fghs0yzur5onb)" points="344,479.5557,356,491.5557,344,503.5557,332,491.5557,344,479.5557" style="stroke: #A80036; stroke-width: 1.5;"/><ellipse cx="344" cy="533.5557" fill="none" filter="url(#fghs0yzur5onb)" rx="10" ry="10" style="stroke: #000000; stroke-width: 1.0;"/><ellipse cx="344.5" cy="534.0557" fill="#000000" filter="url(#fghs0yzur5onb)" rx="6" ry="6" style="stroke: none; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="344" x2="344" y1="92.8594" y2="112.8594"/><polygon fill="#A80036" points="340,102.8594,344,112.8594,348,102.8594,344,106.8594" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="344" x2="344" y1="330.2666" y2="359.6182"/><polygon fill="#A80036" points="340,349.6182,344,359.6182,348,349.6182,344,353.6182" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="344" x2="344" y1="249.1992" y2="296.2979"/><polygon fill="#A80036" points="340,286.2979,344,296.2979,348,286.2979,344,290.2979" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="344" x2="344" y1="393.5869" y2="425.5869"/><polygon fill="#A80036" points="340,415.5869,344,425.5869,348,415.5869,344,419.5869" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="344" x2="344" y1="190.8281" y2="215.2305"/><polygon fill="#A80036" points="340,205.2305,344,215.2305,348,205.2305,344,209.2305" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="426" x2="688" y1="178.8281" y2="178.8281"/><polygon fill="#A80036" points="684,329.6182,688,339.6182,692,329.6182,688,333.6182" style="stroke: #A80036; stroke-width: 1.5;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="688" x2="688" y1="178.8281" y2="491.5557"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="688" x2="356" y1="491.5557" y2="491.5557"/><polygon fill="#A80036" points="366,487.5557,356,491.5557,366,495.5557,362,491.5557" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="344" x2="344" y1="459.5557" y2="479.5557"/><polygon fill="#A80036" points="340,469.5557,344,479.5557,348,469.5557,344,473.5557" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="344" x2="344" y1="146.8281" y2="166.8281"/><polygon fill="#A80036" points="340,156.8281,344,166.8281,348,156.8281,344,160.8281" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="344" x2="344" y1="503.5557" y2="523.5557"/><polygon fill="#A80036" points="340,513.5557,344,523.5557,348,513.5557,344,517.5557" style="stroke: #A80036; stroke-width: 1.0;"/><!--
2
@startuml
3

    
4
title **µRtWare**\nurtPublisherInit()\n
5

    
6

    
7

    
8
start
9
:initialize members;
10
if (Messages to contribute?) then (yes)
11
  :lock topic;
12
  partition "contribute messages" {
13
    :set ""next"" pointer of topic's latest message to first message to contribute;
14
    :set ""next"" pointer of last message to contribute to message formerly after the topic's latest message;
15
  }
16
  :unlock topic;
17
else (no)
18
endif
19
stop
20

    
21
@enduml
22

    
23
PlantUML version 1.2018.11(Sat Sep 22 18:43:53 CEST 2018)
24
(GPL source distribution)
25
Java Runtime: OpenJDK Runtime Environment
26
JVM: OpenJDK 64-Bit Server VM
27
Java Version: 1.8.0_181-8u181-b13-0ubuntu0.16.04.1-b13
28
Operating System: Linux
29
OS Version: 4.15.0-36-generic
30
Default Encoding: UTF-8
31
Language: en
32
Country: US
33
--></g></svg>