Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 May 2012 01:30:05 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-threads@FreeBSD.org
Subject:   Re: threads/168317: commit references a PR
Message-ID:  <201205270130.q4R1U5Yf077493@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR threads/168317; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: threads/168317: commit references a PR
Date: Sun, 27 May 2012 01:25:00 +0000 (UTC)

 Author: davidxu
 Date: Sun May 27 01:24:51 2012
 New Revision: 236135
 URL: http://svn.freebsd.org/changeset/base/236135
 
 Log:
   Return EBUSY for PTHREAD_MUTEX_ADAPTIVE_NP too when the mutex could not
   be acquired.
   
   PR:	168317
   MFC after:	3 days
 
 Modified:
   head/lib/libthr/thread/thr_mutex.c
 
 Modified: head/lib/libthr/thread/thr_mutex.c
 ==============================================================================
 --- head/lib/libthr/thread/thr_mutex.c	Sun May 27 01:24:08 2012	(r236134)
 +++ head/lib/libthr/thread/thr_mutex.c	Sun May 27 01:24:51 2012	(r236135)
 @@ -538,6 +538,7 @@ mutex_self_trylock(struct pthread_mutex 
  	switch (PMUTEX_TYPE(m->m_flags)) {
  	case PTHREAD_MUTEX_ERRORCHECK:
  	case PTHREAD_MUTEX_NORMAL:
 +	case PTHREAD_MUTEX_ADAPTIVE_NP:
  		ret = EBUSY; 
  		break;
  
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205270130.q4R1U5Yf077493>