===== boost/thread/pthread/mutex.hpp 1.1 vs edited ===== --- 1.1/boost/thread/pthread/mutex.hpp 2009-07-13 14:46:41 +01:00 +++ edited/boost/thread/pthread/mutex.hpp 2009-08-11 16:31:05 +01:00 @@ -37,7 +37,9 @@ int const res=pthread_mutex_init(&m,NULL); if(res) { +#ifndef BOOST_NO_EXCEPTIONS throw thread_resource_error(); +#endif } } ~mutex() @@ -89,14 +91,18 @@ int const res=pthread_mutex_init(&m,NULL); if(res) { +#ifndef BOOST_NO_EXCEPTIONS throw thread_resource_error(); +#endif } #ifndef BOOST_PTHREAD_HAS_TIMEDLOCK int const res2=pthread_cond_init(&cond,NULL); if(res2) { BOOST_VERIFY(!pthread_mutex_destroy(&m)); +#ifndef BOOST_NO_EXCEPTIONS throw thread_resource_error(); +#endif } is_locked=false; #endif