From owner-cvs-all Fri Aug 23 13:13:28 2002 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 E7E9937B400; Fri, 23 Aug 2002 13:13:23 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AF7843E42; Fri, 23 Aug 2002 13:13:23 -0700 (PDT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7NKDNJU033815; Fri, 23 Aug 2002 13:13:23 -0700 (PDT) (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7NKDNGo033814; Fri, 23 Aug 2002 13:13:23 -0700 (PDT) Message-Id: <200208232013.g7NKDNGo033814@freefall.freebsd.org> From: Julian Elischer Date: Fri, 23 Aug 2002 13:13:23 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys proc.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG julian 2002/08/23 13:13:23 PDT Modified files: sys/sys proc.h Log: Add the complex state TDS_SUSP_SLP. This state is to allow some experimentation and not YET used.. The theory is that a thread that is about to sleep is placed on the sleep queue and then discovers it should suspend, and is placed on suspend queue. (these are separate queues and it can be on both). It will not become runnable until it has been removed from BOTH queues. i.e. a wakeup event has occured AND the process has been unsuspended. If it were not on the sleep queue when suspended, then the (possibly only) wakeup event might arrive and not find any process to wake up. this would result in the thread sleeping 'forever' when the suspension is lifted. This state will transition to one of TDS_SLP or TDS_SUSPENDED, depending upon which constraint is lifted first. Revision Changes Path 1.235 +2 -1 src/sys/sys/proc.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message