summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2010-08-26 09:04:27 +0000
committerdavidxu <davidxu@FreeBSD.org>2010-08-26 09:04:27 +0000
commitc360399299737fe018a58abf25a572aecd132544 (patch)
treeb42069be1ec1801cd2a854c48f57db38d1fde4f1 /lib/libthr/thread
parent4dfe518936104e22919fdfc5638b10731caca8d4 (diff)
downloadFreeBSD-src-c360399299737fe018a58abf25a572aecd132544.zip
FreeBSD-src-c360399299737fe018a58abf25a572aecd132544.tar.gz
eliminate unused code.
Diffstat (limited to 'lib/libthr/thread')
-rw-r--r--lib/libthr/thread/thr_exit.c12
-rw-r--r--lib/libthr/thread/thr_private.h5
2 files changed, 0 insertions, 17 deletions
diff --git a/lib/libthr/thread/thr_exit.c b/lib/libthr/thread/thr_exit.c
index a875d14..e6facd9 100644
--- a/lib/libthr/thread/thr_exit.c
+++ b/lib/libthr/thread/thr_exit.c
@@ -55,16 +55,6 @@ _thread_exit(const char *fname, int lineno, const char *msg)
abort();
}
-/*
- * Only called when a thread is cancelled. It may be more useful
- * to call it from pthread_exit() if other ways of asynchronous or
- * abnormal thread termination can be found.
- */
-void
-_thr_exit_cleanup(void)
-{
-}
-
void
_pthread_exit(void *status)
{
@@ -84,8 +74,6 @@ _pthread_exit(void *status)
curthread->cancel_enable = 0;
curthread->cancel_async = 0;
- _thr_exit_cleanup();
-
/* Save the return value: */
curthread->ret = status;
while (curthread->cleanup != NULL) {
diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h
index fd79b78..f92913b 100644
--- a/lib/libthr/thread/thr_private.h
+++ b/lib/libthr/thread/thr_private.h
@@ -623,7 +623,6 @@ void _mutex_fork(struct pthread *curthread) __hidden;
void _libpthread_init(struct pthread *) __hidden;
struct pthread *_thr_alloc(struct pthread *) __hidden;
void _thread_exit(const char *, int, const char *) __hidden __dead2;
-void _thr_exit_cleanup(void) __hidden;
int _thr_ref_add(struct pthread *, struct pthread *, int) __hidden;
void _thr_ref_delete(struct pthread *, struct pthread *) __hidden;
void _thr_ref_delete_unlocked(struct pthread *, struct pthread *) __hidden;
@@ -635,7 +634,6 @@ void _thr_stack_free(struct pthread_attr *) __hidden;
void _thr_free(struct pthread *, struct pthread *) __hidden;
void _thr_gc(struct pthread *) __hidden;
void _thread_cleanupspecific(void) __hidden;
-void _thread_dump_info(void) __hidden;
void _thread_printf(int, const char *, ...) __hidden;
void _thr_spinlock_init(void) __hidden;
void _thr_cancel_enter(struct pthread *) __hidden;
@@ -671,9 +669,6 @@ int _schedparam_to_rtp(int policy, const struct sched_param *param,
void _thread_bp_create(void);
void _thread_bp_death(void);
int _sched_yield(void);
-void _thr_sem_prefork(void);
-void _thr_sem_postfork(void);
-void _thr_sem_child_postfork(void);
void _pthread_cleanup_push(void (*)(void *), void *);
void _pthread_cleanup_pop(int);
OpenPOWER on IntegriCloud