svn commit: r211836 - head/lib/libthr/thread
David Xu
davidxu at FreeBSD.org
Thu Aug 26 09:04:28 UTC 2010
Author: davidxu
Date: Thu Aug 26 09:04:27 2010
New Revision: 211836
URL: http://svn.freebsd.org/changeset/base/211836
Log:
eliminate unused code.
Modified:
head/lib/libthr/thread/thr_exit.c
head/lib/libthr/thread/thr_private.h
Modified: head/lib/libthr/thread/thr_exit.c
==============================================================================
--- head/lib/libthr/thread/thr_exit.c Thu Aug 26 07:57:45 2010 (r211835)
+++ head/lib/libthr/thread/thr_exit.c Thu Aug 26 09:04:27 2010 (r211836)
@@ -55,16 +55,6 @@ _thread_exit(const char *fname, int line
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) {
Modified: head/lib/libthr/thread/thr_private.h
==============================================================================
--- head/lib/libthr/thread/thr_private.h Thu Aug 26 07:57:45 2010 (r211835)
+++ head/lib/libthr/thread/thr_private.h Thu Aug 26 09:04:27 2010 (r211836)
@@ -623,7 +623,6 @@ void _mutex_fork(struct pthread *curthre
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
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
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);
More information about the svn-src-head
mailing list