summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2008-05-06 07:27:11 +0000
committerdavidxu <davidxu@FreeBSD.org>2008-05-06 07:27:11 +0000
commitfc58e99cef77a3982048f6b39d87180dd8b28ad9 (patch)
treeaf29061bc09b8a62861fa686d018245241c5736c
parent628a16340e83bd7f6a5b475521f4f0fe51f27785 (diff)
downloadFreeBSD-src-fc58e99cef77a3982048f6b39d87180dd8b28ad9.zip
FreeBSD-src-fc58e99cef77a3982048f6b39d87180dd8b28ad9.tar.gz
Remove libc_r's remnant code.
-rw-r--r--lib/libthr/thread/thr_exit.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/libthr/thread/thr_exit.c b/lib/libthr/thread/thr_exit.c
index df0170a..4b31a60 100644
--- a/lib/libthr/thread/thr_exit.c
+++ b/lib/libthr/thread/thr_exit.c
@@ -62,22 +62,6 @@ _thread_exit(const char *fname, int lineno, const char *msg)
void
_thr_exit_cleanup(void)
{
- struct pthread *curthread = _get_curthread();
-
- /*
- * POSIX states that cancellation/termination of a thread should
- * not release any visible resources (such as mutexes) and that
- * it is the applications responsibility. Resources that are
- * internal to the threads library, including file and fd locks,
- * are not visible to the application and need to be released.
- */
- /* Unlock all private mutexes: */
- _mutex_unlock_private(curthread);
-
- /*
- * This still isn't quite correct because we don't account
- * for held spinlocks (see libc/stdlib/malloc.c).
- */
}
void
OpenPOWER on IntegriCloud