<p><a href="https://gerrit.osmocom.org/14078">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/14078/1/library/RTP_Emulation.ttcn">File library/RTP_Emulation.ttcn:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/14078/1/library/RTP_Emulation.ttcn@473">Patch Set #1, Line 473:</a> <code style="font-family:monospace,monospace">             [g_tx_connected] T_transmit.timeout {</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">AFAICT: The timeout expiration event is in the inbound port queue until some match statement dequeue […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Tested it works as you described, so we can merge this patch.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Tested with following snippet:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">"""<br>               var boolean g_tx_connected := false;<br>          var boolean cont := true;<br>             timer T_transmit := 1.0;<br>              timer T_foo := 5.0;</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">           T_transmit.start;<br>             T_foo.start;</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">          while (cont) {<br>                        alt {<br>                         [] T_foo.timeout {<br>                                    log("pespin: foo enabling other timer...");<br>                                 g_tx_connected := true;<br>                               }<br>                             [g_tx_connected] T_transmit.timeout {<br>                                 log("pespin: TIMER TRIGGERS!");<br>                                     cont := false;<br>                                }<br>                     }<br>             }</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">             setverdict(pass);<br>"""</pre><p style="white-space: pre-wrap; word-wrap: break-word;">Output:<br>"""<br>09:47:43.230378 mtc MGCP_Test.ttcn:1049 Start timer T_transmit: 1 s<br>09:47:43.230397 mtc MGCP_Test.ttcn:1050 Start timer T_foo: 5 s<br>09:47:48.246562 mtc MGCP_Test.ttcn:1054 Timeout T_foo: 5 s<br>09:47:48.246829 mtc MGCP_Test.ttcn:1055 pespin: foo enabling other timer...<br>09:47:48.247020 mtc MGCP_Test.ttcn:1054 Timeout operation on timer T_foo failed: The timer is not started.<br>09:47:48.247132 mtc MGCP_Test.ttcn:1058 Timeout T_transmit: 1 s<br>09:47:48.247217 mtc MGCP_Test.ttcn:1059 pespin: TIMER TRIGGERS!<br>09:47:48.247416 mtc MGCP_Test.ttcn:1065 setverdict(pass): none -> pass<br>"""</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/14078">change 14078</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/14078"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I20e7aed35bb28200e30ee5efc718f77e036d8262 </div>
<div style="display:none"> Gerrit-Change-Number: 14078 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 20 May 2019 07:50:40 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>