summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_kern.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2003-05-19 23:04:50 +0000
committerdeischen <deischen@FreeBSD.org>2003-05-19 23:04:50 +0000
commitb26e5b44e091598edccd3d8954dc42037109f560 (patch)
tree40f53734ab843598c83e52d250d2e4c69ce3a826 /lib/libpthread/thread/thr_kern.c
parentda1b9f9f885f1d617fdc7f06432b3ea1d2c18408 (diff)
downloadFreeBSD-src-b26e5b44e091598edccd3d8954dc42037109f560.zip
FreeBSD-src-b26e5b44e091598edccd3d8954dc42037109f560.tar.gz
Eek, staticize a couple of functions that shouldn't
be external (initialize()!). Remove cancellation points from _pthread_cond_wait and _pthread_cond_timedwait (single underscore versions are libc private functions). Point the weak reference(!) for these functions to the versions with cancellation points. Approved by: re@(blanket till 5/19) Pointed out by: kan (cancellation point bug)
Diffstat (limited to 'lib/libpthread/thread/thr_kern.c')
-rw-r--r--lib/libpthread/thread/thr_kern.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c
index 2df1634..128b054 100644
--- a/lib/libpthread/thread/thr_kern.c
+++ b/lib/libpthread/thread/thr_kern.c
@@ -117,6 +117,9 @@ static int inited = 0;
static int active_kse_count = 0;
static int active_kseg_count = 0;
+#ifdef DEBUG_THREAD_KERN
+static void dump_queues(struct kse *curkse);
+#endif
static void kse_check_completed(struct kse *kse);
static void kse_check_waitq(struct kse *kse);
static void kse_check_signals(struct kse *kse);
@@ -762,7 +765,8 @@ kse_sched_single(struct kse *curkse)
}
#endif
-void
+#ifdef DEBUG_THREAD_KERN
+static void
dump_queues(struct kse *curkse)
{
struct pthread *thread;
@@ -773,6 +777,7 @@ dump_queues(struct kse *curkse)
thread, thread->state, thread->blocked);
}
}
+#endif
/*
* This is the scheduler for a KSE which runs multiple threads.
OpenPOWER on IntegriCloud