diff -ruN boost_1_46_1.log3/boost/thread/pthread/mutex.hpp boost_1_46_1.log/boost/thread/pthread/mutex.hpp --- boost_1_46_1.log3/boost/thread/pthread/mutex.hpp 2011-07-27 17:32:00.972542300 -0700 +++ boost_1_46_1.log/boost/thread/pthread/mutex.hpp 2011-07-27 17:33:38.365687735 -0700 @@ -36,7 +36,14 @@ public: mutex() { - int const res=pthread_mutex_init(&m,NULL); + pthread_mutexattr_t mutex_attr; + pthread_mutexattr_init(&mutex_attr); + pthread_mutexattr_setprotocol(&mutex_attr, PTHREAD_PRIO_INHERIT); + + int const res=pthread_mutex_init(&m, &mutex_attr); + + pthread_mutexattr_destroy(&mutex_attr); + if(res) { boost::throw_exception(thread_resource_error());