summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2008-05-06 07:27:11 +0000
committerDavid Xu <davidxu@FreeBSD.org>2008-05-06 07:27:11 +0000
commitcf181aee600f9c7e459ef27860be83ef40ae3970 (patch)
treeaf29061bc09b8a62861fa686d018245241c5736c
parente7989722c0ec3f78efb301fd9bfbd320fe0968da (diff)
Notes
-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 df0170ac37e6..4b31a606137f 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