summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2012-05-27 01:24:51 +0000
committerdavidxu <davidxu@FreeBSD.org>2012-05-27 01:24:51 +0000
commit03c118fef9e7d5510a10b543543e83201c45ca05 (patch)
tree3296acee8a26b175d02fe7fe8c10fcffa4676fe8 /lib/libthr
parent2d07c3f75f4ae8a90074cef66e4a388067c69396 (diff)
downloadFreeBSD-src-03c118fef9e7d5510a10b543543e83201c45ca05.zip
FreeBSD-src-03c118fef9e7d5510a10b543543e83201c45ca05.tar.gz
Return EBUSY for PTHREAD_MUTEX_ADAPTIVE_NP too when the mutex could not
be acquired. PR: 168317 MFC after: 3 days
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/thread/thr_mutex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c
index 7573f28..91b47ec 100644
--- a/lib/libthr/thread/thr_mutex.c
+++ b/lib/libthr/thread/thr_mutex.c
@@ -538,6 +538,7 @@ mutex_self_trylock(struct pthread_mutex *m)
switch (PMUTEX_TYPE(m->m_flags)) {
case PTHREAD_MUTEX_ERRORCHECK:
case PTHREAD_MUTEX_NORMAL:
+ case PTHREAD_MUTEX_ADAPTIVE_NP:
ret = EBUSY;
break;
OpenPOWER on IntegriCloud