From owner-cvs-all@FreeBSD.ORG Mon Dec 18 17:08:08 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 395DF16A40F; Mon, 18 Dec 2006 17:08:08 +0000 (UTC) (envelope-from peadar@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id E84EB43C9F; Mon, 18 Dec 2006 17:08:07 +0000 (GMT) (envelope-from peadar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kBIH87od090643; Mon, 18 Dec 2006 17:08:07 GMT (envelope-from peadar@repoman.freebsd.org) Received: (from peadar@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kBIH878N090642; Mon, 18 Dec 2006 17:08:07 GMT (envelope-from peadar) Message-Id: <200612181708.kBIH878N090642@repoman.freebsd.org> From: Peter Edwards Date: Mon, 18 Dec 2006 17:08:07 +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/lib/libpthread/thread thr_kern.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: Mon, 18 Dec 2006 17:08:08 -0000 peadar 2006-12-18 17:08:07 UTC FreeBSD src repository Modified files: lib/libpthread/thread thr_kern.c Log: Clean bound and non-bound pthread structures consistently before they become candidates for reuse. Without this fix, some of the state from a thread structure's previous incarnation could interfere with its new one. Specifically, a non-bound thread started as "suspended" (see pthread_attr_setcreatesuspend_np()) might not get scheduled at all when resumed, as the "active" flag would be set spuriously. Reviewed by: deischen@, davidxu@ MFC after: 1 week Revision Changes Path 1.122 +5 -4 src/lib/libpthread/thread/thr_kern.c