<div dir="ltr"><div>They are not, nor should they be, since their use cases under SMP tend to already hold a lock for other reasons. If you think about it, even if the core routines were thread-safe, the caller's use cases are not going to be thread safe unless the caller uses locks around its own use cases anyway.<br></div><div><br></div>-Matt<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 29, 2016 at 3:22 AM, Christoph Harder <span dir="ltr"><<a href="mailto:shadowomf@arcor.de" target="_blank">shadowomf@arcor.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
are QUEUE(3) and TREE(3) thread safe/atomic or ahould one use a lock when accessing them from multiple threads?<br>
<br>
Best regards,<br>
Christoph<br>
</blockquote></div><br></div>