Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/nathanw_sa]: src/lib/libpthread Clean up the state of used idle threads ...



details:   https://anonhg.NetBSD.org/src/rev/91e4e2b1f7cb
branches:  nathanw_sa
changeset: 504862:91e4e2b1f7cb
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Tue Jul 17 20:13:55 2001 +0000

description:
Clean up the state of used idle threads more carefully.

diffstat:

 lib/libpthread/pthread_run.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r df6e2192afa2 -r 91e4e2b1f7cb lib/libpthread/pthread_run.c
--- a/lib/libpthread/pthread_run.c      Tue Jul 17 01:41:40 2001 +0000
+++ b/lib/libpthread/pthread_run.c      Tue Jul 17 20:13:55 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_run.c,v 1.1.2.3 2001/07/13 02:42:38 nathanw Exp $      */
+/*     $NetBSD: pthread_run.c,v 1.1.2.4 2001/07/17 20:13:55 nathanw Exp $      */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -157,6 +157,8 @@
                        qhead->rescheds++;
                        PTQ_INSERT_TAIL(&runqueue, qhead, pt_runq);
                } else if (qhead->pt_type == PT_THREAD_IDLE) {
+                       qhead->pt_state = PT_STATE_RUNNABLE;
+                       qhead->pt_flags &= ~PT_FLAG_IDLED;
                        qhead->pt_next = NULL;
                        qhead->pt_parent = NULL;
                        _getcontext_u(qhead->pt_uc);



Home | Main Index | Thread Index | Old Index