title: Is shared library local variable thread safe?
body: <p>I'm developing a multi-threaded application which application which will access a shared library, now i see that the shared library doesn't contain any global variable, so does it mean that the library is thread safe? for example.</p>
  
  <p>I'm calling function <code>func()</code> from various threads to a shared library like:</p>
  
  <p>thread 1 -> func()</p>
  
  <p>thread 2 -> func()</p>
  
  <p>...</p>
  
  <p>thread N ->func()</p>
  
  <p>and the func() is defined as below,</p>
  
  <pre><code>void func(){
      int var;
      func2(&amp;var);
  }
  </code></pre>
  
  <p>In this cases, will it be thread safe?</p>