summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_priority_queue.c
diff options
context:
space:
mode:
authormini <mini@FreeBSD.org>2002-10-30 06:07:18 +0000
committermini <mini@FreeBSD.org>2002-10-30 06:07:18 +0000
commitee4068ef29f700291bdfe8867286996571bb58aa (patch)
tree0bf6e4da0afbcb394be3c20c8b89b3a674bd8c07 /lib/libpthread/thread/thr_priority_queue.c
parenta8da55afda685ca2151899c0d25f837c962b9670 (diff)
downloadFreeBSD-src-ee4068ef29f700291bdfe8867286996571bb58aa.zip
FreeBSD-src-ee4068ef29f700291bdfe8867286996571bb58aa.tar.gz
Use KSE to schedule threads.
Diffstat (limited to 'lib/libpthread/thread/thr_priority_queue.c')
-rw-r--r--lib/libpthread/thread/thr_priority_queue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_priority_queue.c b/lib/libpthread/thread/thr_priority_queue.c
index 1c1b269e..7dcd752 100644
--- a/lib/libpthread/thread/thr_priority_queue.c
+++ b/lib/libpthread/thread/thr_priority_queue.c
@@ -68,9 +68,9 @@ static int _pq_active = 0;
if (((thrd)->flags & _PQ_IN_SCHEDQ) != 0) \
PANIC(msg); \
} while (0)
-#define _PQ_ASSERT_PROTECTED(msg) \
- PTHREAD_ASSERT((_thread_kern_in_sched != 0) || \
- ((_get_curthread())->sig_defer_count > 0), \
+#define _PQ_ASSERT_PROTECTED(msg) \
+ PTHREAD_ASSERT((_thread_kern_kse_mailbox.km_curthread == NULL) || \
+ ((_get_curthread())->sig_defer_count > 0), \
msg);
#else
OpenPOWER on IntegriCloud