diff options
author | davidxu <davidxu@FreeBSD.org> | 2004-08-03 02:23:06 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2004-08-03 02:23:06 +0000 |
commit | 6f2afa324d1065b683deec76bffd5785ba2d4989 (patch) | |
tree | ecab1eab8d4a6ebfbf396cb5ab2e5d6c501e078f /lib/libpthread | |
parent | 4b4df6655a6958a27b64cae8ba605a069de6592f (diff) | |
download | FreeBSD-src-6f2afa324d1065b683deec76bffd5785ba2d4989.zip FreeBSD-src-6f2afa324d1065b683deec76bffd5785ba2d4989.tar.gz |
s/TMDF_DONOTRUNUSER/TMDF_SUSPEND/g
Dicussed with: deischen
Diffstat (limited to 'lib/libpthread')
-rw-r--r-- | lib/libpthread/thread/thr_kern.c | 4 | ||||
-rw-r--r-- | lib/libpthread/thread/thr_priority_queue.c | 2 | ||||
-rw-r--r-- | lib/libpthread/thread/thr_private.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c index 289ac8d..c159f1b 100644 --- a/lib/libpthread/thread/thr_kern.c +++ b/lib/libpthread/thread/thr_kern.c @@ -2525,12 +2525,12 @@ void _thr_debug_check_yield(struct pthread *curthread) { /* - * Note that TMDF_DONOTRUNUSER is set after process is suspended. + * Note that TMDF_SUSPEND is set after process is suspended. * When we are being debugged, every suspension in process * will cause all KSEs to schedule an upcall in kernel, unless the * KSE is in critical region. * If the function is being called, it means the KSE is no longer - * in critical region, if the TMDF_DONOTRUNUSER is set by debugger + * in critical region, if the TMDF_SUSPEND is set by debugger * before KSE leaves critical region, we will catch it here, else * if the flag is changed during testing, it also not a problem, * because the change only occurs after a process suspension event diff --git a/lib/libpthread/thread/thr_priority_queue.c b/lib/libpthread/thread/thr_priority_queue.c index 83187ff..f750a01 100644 --- a/lib/libpthread/thread/thr_priority_queue.c +++ b/lib/libpthread/thread/thr_priority_queue.c @@ -274,7 +274,7 @@ _pq_first_debug(pq_queue_t *pq) } else { /* * note there may be a suspension event during this - * test, If TMDF_DONOTRUNUSER is set after we tested it, + * test, If TMDF_SUSPEND is set after we tested it, * we will run the thread, this seems be a problem, * fortunatly, when we are being debugged, all context * switch will be done by kse_switchin, that is a diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h index 0b0e366..7a3ae50 100644 --- a/lib/libpthread/thread/thr_private.h +++ b/lib/libpthread/thread/thr_private.h @@ -972,7 +972,7 @@ do { \ (((thrd)->flags & THR_FLAGS_SUSPENDED) != 0)) #define THR_IS_EXITING(thrd) (((thrd)->flags & THR_FLAGS_EXITING) != 0) #define DBG_CAN_RUN(thrd) (((thrd)->tcb->tcb_tmbx.tm_dflags & \ - TMDF_DONOTRUNUSER) == 0) + TMDF_SUSPEND) == 0) extern int __isthreaded; |