From owner-svn-src-all@FreeBSD.ORG Thu Mar 5 09:01:47 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CEB1AB42; Thu, 5 Mar 2015 09:01:47 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BAC3F393; Thu, 5 Mar 2015 09:01:47 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2591lhx025941; Thu, 5 Mar 2015 09:01:47 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2591lqb025940; Thu, 5 Mar 2015 09:01:47 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201503050901.t2591lqb025940@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Thu, 5 Mar 2015 09:01:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r279632 - stable/10/lib/libstdthreads X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2015 09:01:47 -0000 Author: kib Date: Thu Mar 5 09:01:46 2015 New Revision: 279632 URL: https://svnweb.freebsd.org/changeset/base/279632 Log: MFC r279326: Use pthread_mutex_trylock(3) to implement mtx_trylock(3). Modified: stable/10/lib/libstdthreads/mtx.c Directory Properties: stable/10/ (props changed) Modified: stable/10/lib/libstdthreads/mtx.c ============================================================================== --- stable/10/lib/libstdthreads/mtx.c Thu Mar 5 09:00:27 2015 (r279631) +++ stable/10/lib/libstdthreads/mtx.c Thu Mar 5 09:01:46 2015 (r279632) @@ -96,7 +96,7 @@ int mtx_trylock(mtx_t *mtx) { - switch (pthread_mutex_lock(mtx)) { + switch (pthread_mutex_trylock(mtx)) { case 0: return (thrd_success); case EBUSY: