X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fmutex.cpp;h=4f830c5965fd3da0bbf684e24ab5c40e6fdfc9a7;hp=e1657c9f88c5d32c712b1d362c4cfbb9c8529b8d;hb=7f847aeb48e0e8f58ead52ba255cff27527628eb;hpb=a23176e6d3399bbeb75cf6a173543bf5d5f85187 diff --git a/source/core/mutex.cpp b/source/core/mutex.cpp index e1657c9..4f830c5 100644 --- a/source/core/mutex.cpp +++ b/source/core/mutex.cpp @@ -33,7 +33,7 @@ void Mutex::lock() EnterCriticalSection(&priv->crit); #else if(int err = pthread_mutex_lock(&priv->mutex)) - throw system_error("Mutex::lock", err); + throw system_error("pthread_mutex_lock", err); #endif } @@ -44,7 +44,7 @@ bool Mutex::trylock() #else int err = pthread_mutex_trylock(&priv->mutex); if(err && err!=EBUSY) - throw system_error("Mutex::trylock", err); + throw system_error("pthread_mutex_trylock", err); return !err; #endif } @@ -55,7 +55,7 @@ void Mutex::unlock() LeaveCriticalSection(&priv->crit); #else if(int err = pthread_mutex_unlock(&priv->mutex)) - throw system_error("Mutex::unlock", err); + throw system_error("pthread_mutex_unlock", err); #endif }