From owner-cvs-all@FreeBSD.ORG Fri May 23 16:39:32 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29BBE37B401; Fri, 23 May 2003 16:39:32 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBAE643F3F; Fri, 23 May 2003 16:39:31 -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 h4NNdV0U096991; Fri, 23 May 2003 16:39:31 -0700 (PDT) (envelope-from mtm@repoman.freebsd.org) Received: (from mtm@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4NNdVRC096990; Fri, 23 May 2003 16:39:31 -0700 (PDT) Message-Id: <200305232339.h4NNdVRC096990@repoman.freebsd.org> From: Mike Makonnen Date: Fri, 23 May 2003 16:39:31 -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/arch/i386/i386 _setcurthread.c src/lib/libthr/thread thr_private.h thr_spinlock.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 May 2003 23:39:32 -0000 mtm 2003/05/23 16:39:31 PDT FreeBSD src repository Modified files: lib/libthr/arch/i386/i386 _setcurthread.c lib/libthr/thread thr_private.h thr_spinlock.c Log: Add two functions: _spinlock_pthread() and _spinunlock_pthread() that take the address of a struct pthread as their first argument. _spin[un]lock() just become wrappers arround these two functions. These new functions are for use in situations where curthread can't be used. One example is _thread_retire(), where we invalidate the array index curthread uses to get its pointer.. Approved by: re/blanket libthr Revision Changes Path 1.7 +4 -2 src/lib/libthr/arch/i386/i386/_setcurthread.c 1.9 +2 -0 src/lib/libthr/thread/thr_private.h 1.3 +14 -2 src/lib/libthr/thread/thr_spinlock.c