<p>Harald Welte <strong>uploaded patch set #5</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/13436">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">make all library-internal static buffers thread-local<br><br>We have a number of library-internal static global buffers which are<br>mainly used for various stringification functions.  This worked as<br>all of the related Osmocom programs were strictly single-threaded.<br><br>Let's make those buffers at least thread-local.  This way every thread<br>gets their own set of buffers, and it's safe for multiple threads to<br>execute the same functiosn once.  They're of course still not<br>re-entrant.  If you need re-entrancy, you will need to use the _c()<br>or _buf() suffix versionf of those functions and work with your own<br>(stack or heap) buffers.<br><br>Change-Id: I50eb2436a7c1261d79a9d2955584dce92780ca07<br>---<br>M src/fsm.c<br>M src/gb/gprs_ns.c<br>M src/gsm/abis_nm.c<br>M src/gsm/apn.c<br>M src/gsm/gsm0808_utils.c<br>M src/gsm/gsm23003.c<br>M src/gsm/gsm48.c<br>M src/gsm/gsm_utils.c<br>M src/gsm/rsl.c<br>M src/msgb.c<br>M src/sim/core.c<br>M src/socket.c<br>M src/utils.c<br>13 files changed, 32 insertions(+), 33 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/36/13436/5</pre><p>To view, visit <a href="https://gerrit.osmocom.org/13436">change 13436</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/13436"/><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-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I50eb2436a7c1261d79a9d2955584dce92780ca07 </div>
<div style="display:none"> Gerrit-Change-Number: 13436 </div>
<div style="display:none"> Gerrit-PatchSet: 5 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>