Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jun 2002 00:12:11 -0700 (PDT)
From:      Julian Elischer <julian@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 12642 for review
Message-ID:  <200206100712.g5A7CBr27283@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=12642

Change 12642 by julian@julian_jules1 on 2002/06/10 00:11:18

	slight tidying

Affected files ...

... //depot/projects/kse/sys/kern/kern_thread.c#58 edit

Differences ...

==== //depot/projects/kse/sys/kern/kern_thread.c#58 (text+ko) ====

@@ -571,13 +571,13 @@
 		}
 	} else if ((P_SHOULDSTOP(p) == P_STOPPED_SNGL) &&
 	    (p->p_numthreads == p->p_suspcount)) {
-		TAILQ_REMOVE(&p->p_suspended, p->p_singlethread, td_runq);
-		p->p_suspcount--;
 		/*
 		 * Stopping everything also did the job for the single
 		 * threading request. Now we've downgraded to single-threaded,
 		 * let it continue.
 		 */
+		TAILQ_REMOVE(&p->p_suspended, p->p_singlethread, td_runq);
+		p->p_suspcount--;
 		setrunqueue(p->p_singlethread);
 		p->p_singlethread = NULL;
 	}

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206100712.g5A7CBr27283>