summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_priority_queue.c
diff options
context:
space:
mode:
authorJonathan Mini <mini@FreeBSD.org>2002-10-30 06:07:18 +0000
committerJonathan Mini <mini@FreeBSD.org>2002-10-30 06:07:18 +0000
commit2d9a293b4e8800812d6f640a56c1f8343085482b (patch)
tree0bf6e4da0afbcb394be3c20c8b89b3a674bd8c07 /lib/libpthread/thread/thr_priority_queue.c
parent66b8df5fdf8ff12880b6684f9f28ea271619b7a6 (diff)
Notes
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 1c1b269e446c..7dcd752785fb 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