<p style="white-space: pre-wrap; word-wrap: break-word;">You have more than one thread, one owns the vty an related talloc contexts, the other one does not, but the other one would like to (or rather has to due to libosmocore design) print something on the vty so that other thread has to block the main thread while acessing the vty context and due to the internal buffer handling with talloc instead of threadsafe plain old malloc there might be a mix of different allocation contexts that are not thread safe so the second thread has to ensure the vty output is flushed before unblocking the main thread.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Or someone somewhere might just want to flush the damn vty without writing a book about it.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/25413">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/25413">change 25413</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/+/25413"/><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: If984b9ad2eba9f400bc29a7aa8825e241fd1d2a9 </div>
<div style="display:none"> Gerrit-Change-Number: 25413 </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-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 10 Sep 2021 14:31:30 +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>