From owner-cvs-src@FreeBSD.ORG Sun Jun 29 16:49:43 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7687637B401; Sun, 29 Jun 2003 16:49:42 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2619A43FFB; Sun, 29 Jun 2003 16:49:42 -0700 (PDT) (envelope-from mtm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h5TNnf0U028784; Sun, 29 Jun 2003 16:49:41 -0700 (PDT) (envelope-from mtm@repoman.freebsd.org) Received: (from mtm@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h5TNnfsF028783; Sun, 29 Jun 2003 16:49:41 -0700 (PDT) Message-Id: <200306292349.h5TNnfsF028783@repoman.freebsd.org> From: Mike Makonnen Date: Sun, 29 Jun 2003 16:49:41 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libthr/thread thr_private.h thr_spinlock.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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, 29 Jun 2003 23:49:44 -0000 mtm 2003/06/29 16:49:41 PDT FreeBSD src repository Modified files: lib/libthr/thread thr_private.h thr_spinlock.c Log: Locking primitives and operations in libthr should use struct umtx, not spinlock_t. Spinlock_t and the associated functions and macros may require blocking signals in order for async-safe libc functions to behave appropriately in libthr. This is undesriable for libthr internal locking. So, this is the first step in completely separating libthr from libc's locking primitives. Three new macros should be used for internal libthr locking from now on: THR_LOCK, THR_TRYLOCK, THR_UNLOCK. Revision Changes Path 1.19 +20 -2 src/lib/libthr/thread/thr_private.h 1.6 +2 -2 src/lib/libthr/thread/thr_spinlock.c