<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 1, 2017 at 1:39 PM, Paul Dubuc <span dir="ltr">&lt;<a href="mailto:work@paul.dubuc.org" target="_blank">work@paul.dubuc.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div id="gmail-:48s" class="gmail-a3s gmail-aXjCH gmail-m15bc51a895a0393a">Global, static variables need to be protected by a mutex or<br>
some other thread locking mechanism.</div></blockquote></div><br>Note that there are also (depending on your runtime/SDK environment &amp; version of C) thread-local static variables -- e.g., seeĀ <a href="http://stackoverflow.com/questions/32245103/how-does-the-gcc-thread-work">http://stackoverflow.com/questions/32245103/how-does-the-gcc-thread-work</a></div><div class="gmail_extra"><br></div><div class="gmail_extra">Jeff</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>