From owner-cvs-all@FreeBSD.ORG Fri Dec 26 00:16:18 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 D15DE16A4CE; Fri, 26 Dec 2003 00:16:18 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BB2E43D1F; Fri, 26 Dec 2003 00:16:18 -0800 (PST) (envelope-from mtm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id hBQ8GH0B061405; Fri, 26 Dec 2003 00:16:17 -0800 (PST) (envelope-from mtm@repoman.freebsd.org) Received: (from mtm@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id hBQ8GHsc061404; Fri, 26 Dec 2003 00:16:17 -0800 (PST) (envelope-from mtm) Message-Id: <200312260816.hBQ8GHsc061404@repoman.freebsd.org> From: Mike Makonnen Date: Fri, 26 Dec 2003 00:16:17 -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_create.c thr_init.c thr_private.h 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, 26 Dec 2003 08:16:19 -0000 mtm 2003/12/26 00:16:17 PST FreeBSD src repository Modified files: lib/libthr/thread thr_create.c thr_init.c thr_private.h Log: Preparations to make libthr work in multi-threaded fork()ing applications. o Remove some code duplication between _thread_init(), which is run once to initialize libthr and the intitial thread, and pthread_create(), which initializes newly created threads, into a new function called from both places: init_td_common() o Move initialization of certain parts of libthr into a separate function. These include: - Active threads list and it's lock - Dead threads list and it's lock & condition variable - Naming and insertion of the initial thread into the active threads list. Revision Changes Path 1.12 +1 -24 src/lib/libthr/thread/thr_create.c 1.11 +78 -39 src/lib/libthr/thread/thr_init.c 1.27 +2 -0 src/lib/libthr/thread/thr_private.h