From owner-p4-projects Sat Jun 22 23:54:11 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8722237B401; Sat, 22 Jun 2002 23:54:05 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 718D937B400 for ; Sat, 22 Jun 2002 23:54:04 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5N6s4I60725 for perforce@freebsd.org; Sat, 22 Jun 2002 23:54:04 -0700 (PDT) (envelope-from julian@freebsd.org) Date: Sat, 22 Jun 2002 23:54:04 -0700 (PDT) Message-Id: <200206230654.g5N6s4I60725@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to julian@freebsd.org using -f From: Julian Elischer Subject: PERFORCE change 13308 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=13308 Change 13308 by julian@julian_ref on 2002/06/22 23:53:31 add a bit of documentation. Affected files ... ... //depot/projects/kse/sys/kern/kern_synch.c#70 edit ... //depot/projects/kse/sys/sys/proc.h#113 edit Differences ... ==== //depot/projects/kse/sys/kern/kern_synch.c#70 (text+ko) ==== ==== //depot/projects/kse/sys/sys/proc.h#113 (text+ko) ==== @@ -326,6 +326,16 @@ #define TDF_DEADLKTREAT 0x800000 /* Lock aquisition - deadlock treatment. */ /* + * Traps for young players: + * The main thread flag that controls whether a thread acts as a threaded + * or unthreaded thread is the TDF_UNBOUND flag. + * UPCALLS run with the UNBOUND flags clear, after they are first scheduled. + * i.e. they bind themselves to whatever thread thay are first scheduled with. + * You may see BOUND threads in KSE processes but you should never see + * UNBOUND threads in non KSE processes. + */ + +/* * The schedulable entity that can be given a context to run. * A process may have several of these. Probably one per processor * but posibly a few more. In this universe they are grouped To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message