From owner-cvs-src@FreeBSD.ORG Thu Jul 17 16:15:25 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 C8AB937B401; Thu, 17 Jul 2003 16:15:25 -0700 (PDT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1730543F93; Thu, 17 Jul 2003 16:15:25 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by attbi.com (rwcrmhc13) with ESMTP id <200307172315240150042j2qe>; Thu, 17 Jul 2003 23:15:24 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA06831; Thu, 17 Jul 2003 16:15:21 -0700 (PDT) Date: Thu, 17 Jul 2003 16:15:19 -0700 (PDT) From: Julian Elischer To: David Xu In-Reply-To: <200307172302.h6HN2UfD036583@repoman.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libpthread Makefile src/lib/libpthread/test sigsuspend_d.c src/lib/libpthread/thread thr_cancel.c thr_concurrency.c thr_create.c thr_find_thread.c thr_init.c thr_kern.c thr_nanosleep.c thr_private.h thr_sig.c thr_sigmask.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: Thu, 17 Jul 2003 23:15:26 -0000 This makes it possible to make the same code run in the same mode as libthr. we have not compared them for performance yet. it is also not fully decided how this will be done in production.. will we have 2 libraries and selct one? Or will it be possible to use a run-time selector? At the moment it is a compile time selection as to which you make and a run-time (via libmap) decision wich you link to.. We'll probably make a libpthread-1:1.so and a libpthread-m:n.so. As they are the same code the interface is pretty much guaranteed to be the same.. Note that like libthr, the 1:1 version is incapable of doing process-scope threads, but otherwise they are compatible. David and Dan (The dynamic "D"s) have been working incredibly hard on this.. Thanks guys! On Thu, 17 Jul 2003, David Xu wrote: > davidxu 2003/07/17 16:02:30 PDT > > FreeBSD src repository > > Modified files: > lib/libpthread Makefile > lib/libpthread/test sigsuspend_d.c > lib/libpthread/thread thr_cancel.c thr_concurrency.c > thr_create.c thr_find_thread.c > thr_init.c thr_kern.c thr_nanosleep.c > thr_private.h thr_sig.c thr_sigmask.c > thr_sigpending.c thr_sigsuspend.c > thr_sigwait.c thr_yield.c > Log: > o Eliminate upcall for PTHREAD_SYSTEM_SCOPE thread, now it > is system bound thread and when it is blocked, no upcall is generated. > > o Add ability to libkse to allow it run in pure 1:1 threading mode, > defining SYSTEM_SCOPE_ONLY in Makefile can turn on this option. > > o Eliminate code for installing dummy signal handler for sigwait call. > > o Add hash table to find thread. > > Reviewed by: deischen > > Revision Changes Path > 1.47 +4 -0 src/lib/libpthread/Makefile > 1.2 +2 -0 src/lib/libpthread/test/sigsuspend_d.c > 1.25 +5 -3 src/lib/libpthread/thread/thr_cancel.c > 1.4 +1 -1 src/lib/libpthread/thread/thr_concurrency.c > 1.48 +25 -17 src/lib/libpthread/thread/thr_create.c > 1.13 +11 -13 src/lib/libpthread/thread/thr_find_thread.c > 1.57 +11 -5 src/lib/libpthread/thread/thr_init.c > 1.78 +217 -104 src/lib/libpthread/thread/thr_kern.c > 1.22 +3 -2 src/lib/libpthread/thread/thr_nanosleep.c > 1.92 +13 -9 src/lib/libpthread/thread/thr_private.h > 1.62 +235 -136 src/lib/libpthread/thread/thr_sig.c > 1.16 +9 -0 src/lib/libpthread/thread/thr_sigmask.c > 1.15 +3 -2 src/lib/libpthread/thread/thr_sigpending.c > 1.21 +5 -2 src/lib/libpthread/thread/thr_sigsuspend.c > 1.31 +50 -101 src/lib/libpthread/thread/thr_sigwait.c > 1.13 +8 -0 src/lib/libpthread/thread/thr_yield.c >