From owner-cvs-all@FreeBSD.ORG Wed Oct 26 06:55:52 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org 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 0AFDC16A41F; Wed, 26 Oct 2005 06:55:52 +0000 (GMT) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9037443D80; Wed, 26 Oct 2005 06:55:46 +0000 (GMT) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9Q6tkPb090415; Wed, 26 Oct 2005 06:55:46 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9Q6tkeI090414; Wed, 26 Oct 2005 06:55:46 GMT (envelope-from davidxu) Message-Id: <200510260655.j9Q6tkeI090414@repoman.freebsd.org> From: David Xu Date: Wed, 26 Oct 2005 06:55:46 +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/sys/sys umtx.h src/sys/kern kern_thr.c kern_umtx.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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, 26 Oct 2005 06:55:52 -0000 davidxu 2005-10-26 06:55:46 UTC FreeBSD src repository Modified files: sys/sys umtx.h sys/kern kern_thr.c kern_umtx.c Log: do umtx_wake at userland thread exit address, so that others userland threads can wait for a thread to exit, and safely assume that the thread has left userland and is no longer using its userland stack, this is necessary for pthread_join when a thread is waiting for another thread to exit which has user customized stack, after pthread_join returns, the userland stack can be reused for other purposes, without this change, the joiner thread has to spin at the address to ensure the thread is really exited. Revision Changes Path 1.36 +5 -1 src/sys/kern/kern_thr.c 1.34 +3 -3 src/sys/kern/kern_umtx.c 1.17 +2 -0 src/sys/sys/umtx.h