PERFORCE change 56963 for review
David Xu
davidxu at FreeBSD.org
Sat Jul 10 07:30:10 PDT 2004
http://perforce.freebsd.org/chv.cgi?CH=56963
Change 56963 by davidxu at davidxu_alona on 2004/07/10 14:29:55
Check bound thread.
Affected files ...
.. //depot/projects/davidxu_ksedbg/src/lib/libpthread/thread/thr_kern.c#5 edit
Differences ...
==== //depot/projects/davidxu_ksedbg/src/lib/libpthread/thread/thr_kern.c#5 (text+ko) ====
@@ -2541,6 +2541,7 @@
* is cleared by debugger, the flag will be cleared in next
* suspension event.
*/
- if (curthread->tcb->tcb_tmbx.tm_dflags & TMDF_DONOTRUNUSER)
+ if ((curthread->attr.flags & PTHREAD_SCOPE_SYSTEM) == 0 &&
+ (curthread->tcb->tcb_tmbx.tm_dflags & TMDF_DONOTRUNUSER))
_thr_sched_switch(curthread);
}
More information about the p4-projects
mailing list