summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_suspend_np.c
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2003-04-21 04:02:56 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2003-04-21 04:02:56 +0000
commit02245e612089c10a31b75ebd58bbef4765fcc054 (patch)
treeb1e30482cc9dacf340a49bac7c46ffce02f42daa /lib/libpthread/thread/thr_suspend_np.c
parentb1ee04b18e90fec17c9c072a8d779b10e8bedcf1 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_suspend_np.c')
-rw-r--r--lib/libpthread/thread/thr_suspend_np.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_suspend_np.c b/lib/libpthread/thread/thr_suspend_np.c
index 321786b7cbd5..7530dd07a472 100644
--- a/lib/libpthread/thread/thr_suspend_np.c
+++ b/lib/libpthread/thread/thr_suspend_np.c
@@ -97,9 +97,12 @@ suspend_common(struct pthread *thread)
(thread->state != PS_DEADLOCK) &&
((thread->flags & THR_FLAGS_EXITING) == 0)) {
thread->flags |= THR_FLAGS_SUSPENDED;
- if ((thread->flags & THR_FLAGS_IN_RUNQ) != 0) {
+ if ((thread->flags & THR_FLAGS_IN_RUNQ) != 0)
THR_RUNQ_REMOVE(thread);
- THR_SET_STATE(thread, PS_SUSPENDED);
- }
+ THR_SET_STATE(thread, PS_SUSPENDED);
+#ifdef NOT_YET
+ if ((thread->attr.flags & PTHREAD_SCOPE_SYSTEM) != 0)
+ /* ??? */
+#endif
}
}