title: Thread safe pthread mutex lock wrappers
body: <p>I am writing a OS abstraction library for which i want to write wrappers for pthread mutex over Linux.</p>
  
  <p>This code shall be called by multiple threads.</p>
  
  <p>The code goes something like this:</p>
  
  <pre><code>int my_lock(pthread_mutex_t *mutex)
  {
      return pthread_mutex_lock(mutex);
  }
  </code></pre>
  
  <ol>
  <li>Will the function my_lock also will be thread-safe?</li>
  <li>If not, How to make it thread-safe? </li>
  </ol>