<p style="white-space: pre-wrap; word-wrap: break-word;">Actually, I would probably have gone for a static global variable, as</p><p style="white-space: pre-wrap; word-wrap: break-word;">a) the PID is not different between multiple targets<br>b) it doesn't change the ABI</p><p style="white-space: pre-wrap; word-wrap: break-word;">But given we are hopefully soon tagging a new release with tons of other ABI breakage, I guess we can overlook the second one.</p><p style="white-space: pre-wrap; word-wrap: break-word;">One idea might be to use the thread ID instead... not sure if that would be interesting in osmoTRX?. t that point it would be a static global __thread variable.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/22920">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/22920">change 22920</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/+/22920"/><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: I7db00d1810f0860166bffa0bda8566caa82e06a9 </div>
<div style="display:none"> Gerrit-Change-Number: 22920 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-CC: Jenkins Builder </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 15 Feb 2021 12:06:27 +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>