From owner-cvs-src@FreeBSD.ORG Tue Dec 12 03:08:50 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 62F5116A407; Tue, 12 Dec 2006 03:08:50 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id E491643CA6; Tue, 12 Dec 2006 03:07:29 +0000 (GMT) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kBC38nTJ081866; Tue, 12 Dec 2006 03:08:49 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kBC38nvw081864; Tue, 12 Dec 2006 03:08:49 GMT (envelope-from davidxu) Message-Id: <200612120308.kBC38nvw081864@repoman.freebsd.org> From: David Xu Date: Tue, 12 Dec 2006 03:08:49 +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/lib/libthr/thread thr_cond.c thr_umtx.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: Tue, 12 Dec 2006 03:08:50 -0000 davidxu 2006-12-12 03:08:49 UTC FreeBSD src repository Modified files: lib/libthr/thread thr_cond.c thr_umtx.c Log: Move checking for c_has_waiters into low level _thr_ucond_signal and _thr_ucond_broadcast, clear condition variable pointer in cancellation info after returing from _thr_ucond_wait, since kernel has already dropped the internal lock, so we don't need to unlock it in cancellation handler again. Revision Changes Path 1.23 +8 -16 src/lib/libthr/thread/thr_cond.c 1.9 +4 -0 src/lib/libthr/thread/thr_umtx.c