std::lock_guard<pthread_mutex_t> does not compile <pre><code>std::lock_guard&lt;pthread_mutex_t&gt; lock(mExecutionReportsLock); </code></pre> <p>This does not compile because pthread_mutex_t is not valid template argument. What is the best way to achieve this functionality</p>