From owner-cvs-src@FreeBSD.ORG Sun Feb 3 22:38:11 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 417F216A41B; Sun, 3 Feb 2008 22:38:11 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1B7CD13C447; Sun, 3 Feb 2008 22:38:11 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m13McBZj065325; Sun, 3 Feb 2008 22:38:11 GMT (envelope-from des@repoman.freebsd.org) Received: (from des@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m13McAbf065324; Sun, 3 Feb 2008 22:38:10 GMT (envelope-from des) Message-Id: <200802032238.m13McAbf065324@repoman.freebsd.org> From: Dag-Erling Smorgrav Date: Sun, 3 Feb 2008 22:38:10 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/include pthread_np.h src/lib/libthr pthread.map src/lib/libthr/thread thr_mutex.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Feb 2008 22:38:11 -0000 des 2008-02-03 22:38:10 UTC FreeBSD src repository Modified files: include pthread_np.h lib/libthr pthread.map lib/libthr/thread thr_mutex.c Log: Add pthread_mutex_islocked_np(), a cheap way to verify that a mutex is locked. This is intended primarily to support the userland equivalent of the various *_ASSERT_LOCKED() macros we have in the kernel. MFC after: 2 weeks Revision Changes Path 1.19 +1 -0 src/include/pthread_np.h 1.22 +15 -0 src/lib/libthr/pthread.map 1.67 +16 -0 src/lib/libthr/thread/thr_mutex.c