diff options
author | mini <mini@FreeBSD.org> | 2002-10-30 06:07:18 +0000 |
---|---|---|
committer | mini <mini@FreeBSD.org> | 2002-10-30 06:07:18 +0000 |
commit | ee4068ef29f700291bdfe8867286996571bb58aa (patch) | |
tree | 0bf6e4da0afbcb394be3c20c8b89b3a674bd8c07 /lib/libpthread/thread/thr_priority_queue.c | |
parent | a8da55afda685ca2151899c0d25f837c962b9670 (diff) | |
download | FreeBSD-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.c | 6 |
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 |