title: Default priority inheritance policy of pthread mutexes on Linux?
body: <p>I have looked around on SO, but did not find an answer to this: When creating pthread mutexes in a Linux userspace program, which policy do these mutexes have by default? See <a href="https://linux.die.net/man/3/pthread_mutexattr_setprotocol" rel="nofollow noreferrer">https://linux.die.net/man/3/pthread_mutexattr_setprotocol</a></p>
  
  <p>It seems the best default policy would be priority ceiling, i.e.  PTHREAD_PRIO_PROTECT, at least for my application ;)</p>
  
  <p>Also, can I set priority inheritance policy on C++ std::mutexes as well, I suspect a C++ std::mutex will be a futex in Linux anyway, as are pthread mutexes?</p>