<p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/26190">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/26190/9/include/osmocom/mgcp/mgcp_trunk.h">File include/osmocom/mgcp/mgcp_trunk.h:</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/osmo-mgw/+/26190/9/include/osmocom/mgcp/mgcp_trunk.h@29">Patch Set #9, Line 29:</a> <code style="font-family:monospace,monospace">  atomic_int_least32_t thread_ready_counter; /* used to check if all child trunk threads are ready for action */</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">This is only used by the top trunk right? But this struct is duplicated for each thread iirc?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">yes. just like the 22kb e1 struct at the bottom.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/26190/10/src/libosmo-mgcp/mgcp_protocol.c">File src/libosmo-mgcp/mgcp_protocol.c:</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/osmo-mgw/+/26190/10/src/libosmo-mgcp/mgcp_protocol.c@322">Patch Set #10, Line 322:</a> <code style="font-family:monospace,monospace">          LOGP(DLMGCP, LOGL_ERROR, "msg too short: %zd\n", rc);</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">No, in order to be initialized it should be: […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I've already fixed this yesterday, but accidentally dropped the changes for this patch again, because this patch existed a second time with a different gerrit id.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/26190/9/src/libosmo-mgcp/mgcp_threads.c">File src/libosmo-mgcp/mgcp_threads.c:</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/osmo-mgw/+/26190/9/src/libosmo-mgcp/mgcp_threads.c@498">Patch Set #9, Line 498:</a> <code style="font-family:monospace,monospace">            while (trunk->use_threads && trunk->thread_ready_counter != num_threads)</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">iiuc there's no need to check trunk->us_threads here? or is num_threads 1 when we run in single thre […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">yes, see 20 lines above.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-mgw/+/26190">change 26190</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/c/osmo-mgw/+/26190"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-mgw </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Iaab3fc262649cb5fb886f0297a60286bde1ffeb0 </div>
<div style="display:none"> Gerrit-Change-Number: 26190 </div>
<div style="display:none"> Gerrit-PatchSet: 12 </div>
<div style="display:none"> Gerrit-Owner: Hoernchen <ewild@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-CC: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 18 Nov 2021 18:01:08 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Comment-In-Reply-To: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>