From owner-cvs-all@FreeBSD.ORG Tue Apr 1 19:05:41 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 1E74637B401; Tue, 1 Apr 2003 19:05:41 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98BA143FA3; Tue, 1 Apr 2003 19:05:40 -0800 (PST) (envelope-from jeff@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 h3235e0U010147; Tue, 1 Apr 2003 19:05:40 -0800 (PST) (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3235ekQ010146; Tue, 1 Apr 2003 19:05:40 -0800 (PST) Message-Id: <200304020305.h3235ekQ010146@repoman.freebsd.org> From: Jeff Roberson Date: Tue, 1 Apr 2003 19:05:40 -0800 (PST) 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_cancel.c thr_clean.c thr_cond.c thr_create.c thr_detach.c thr_exit.c thr_find_thread.c thr_gc.c thr_info.c thr_init.c thr_join.c thr_mutex.c thr_private.h thr_resume_np.c thr_self.c thr_sem.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: Wed, 02 Apr 2003 03:05:41 -0000 jeff 2003/04/01 19:05:40 PST FreeBSD src repository Modified files: lib/libthr/thread thr_cancel.c thr_clean.c thr_cond.c thr_create.c thr_detach.c thr_exit.c thr_find_thread.c thr_gc.c thr_info.c thr_init.c thr_join.c thr_mutex.c thr_private.h thr_resume_np.c thr_self.c thr_sem.c thr_setschedparam.c thr_sig.c thr_spec.c thr_spinlock.c Log: - Define curthread as _get_curthread() and remove all direct calls to _get_curthread(). This is similar to the kernel's curthread. Doing this saves stack overhead and is more convenient to the programmer. - Pass the pointer to the newly created thread to _thread_init(). - Remove _get_curthread_slow(). Revision Changes Path 1.2 +0 -10 src/lib/libthr/thread/thr_cancel.c 1.2 +0 -2 src/lib/libthr/thread/thr_clean.c 1.3 +0 -6 src/lib/libthr/thread/thr_cond.c 1.2 +4 -12 src/lib/libthr/thread/thr_create.c 1.2 +0 -4 src/lib/libthr/thread/thr_detach.c 1.2 +0 -3 src/lib/libthr/thread/thr_exit.c 1.2 +0 -2 src/lib/libthr/thread/thr_find_thread.c 1.2 +0 -1 src/lib/libthr/thread/thr_gc.c 1.2 +0 -1 src/lib/libthr/thread/thr_info.c 1.2 +0 -16 src/lib/libthr/thread/thr_init.c 1.3 +0 -1 src/lib/libthr/thread/thr_join.c 1.3 +5 -8 src/lib/libthr/thread/thr_mutex.c 1.3 +9 -5 src/lib/libthr/thread/thr_private.h 1.2 +0 -4 src/lib/libthr/thread/thr_resume_np.c 1.2 +1 -1 src/lib/libthr/thread/thr_self.c 1.2 +0 -2 src/lib/libthr/thread/thr_sem.c 1.3 +0 -2 src/lib/libthr/thread/thr_setschedparam.c 1.2 +0 -1 src/lib/libthr/thread/thr_sig.c 1.2 +2 -9 src/lib/libthr/thread/thr_spec.c 1.2 +0 -6 src/lib/libthr/thread/thr_spinlock.c