<p style="white-space: pre-wrap; word-wrap: break-word;">I'm not sure if this is really the way to go and whether it makes sense (I'm not saying the opposite either). This basically makes rate_ctr groups created in one thread unavailable/invsible to other threads. Which means, for instance, if the user uses the VTY to show the rate counters, only the ones attached to the thread checking the VTY would be displayed/accessible.</p><p style="white-space: pre-wrap; word-wrap: break-word;">An alternative would be doing something like it's done in osmo-trx iirc. counters are copied from one thread to another without critical section, and only updated from within main thread.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/25414">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/25414">change 25414</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/libosmocore/+/25414"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I117f89add4798a250b5758543f1fb3e01d974205 </div>
<div style="display:none"> Gerrit-Change-Number: 25414 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </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-CC: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 10 Sep 2021 14:00:00 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>