diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-01-16 05:33:48 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-01-16 05:33:48 +0000 |
commit | 97a1cdabb8b2d0992743fceb1bdf26c6ff997807 (patch) | |
tree | 3ec8aeaef65484986c880877d9c9e36f125411b4 /lib/libthr/thread/thr_mutex.c | |
parent | 4179e6a9032c95d4740404dacca48bc5af602a67 (diff) | |
download | FreeBSD-src-97a1cdabb8b2d0992743fceb1bdf26c6ff997807.zip FreeBSD-src-97a1cdabb8b2d0992743fceb1bdf26c6ff997807.tar.gz |
Eliminate unused code.
Diffstat (limited to 'lib/libthr/thread/thr_mutex.c')
-rw-r--r-- | lib/libthr/thread/thr_mutex.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c index 97fefe9..1541a5b 100644 --- a/lib/libthr/thread/thr_mutex.c +++ b/lib/libthr/thread/thr_mutex.c @@ -261,11 +261,6 @@ _mutex_reinit(pthread_mutex_t *mutex) void _mutex_fork(struct pthread *curthread) { -#if 0 - TAILQ_INIT(&curthread->mutexq); - TAILQ_INIT(&curthread->pri_mutexq); - curthread->priority_mutex_count = 0; -#else struct pthread_mutex *m; /* @@ -273,7 +268,7 @@ _mutex_fork(struct pthread *curthread) * note that process shared mutex should not * be inherited because owner is forking thread * which is in parent process, they should be - * removed from the owned mutex list, current + * removed from the owned mutex list, current, * process shared mutex is not supported, so I * am not worried. */ @@ -287,7 +282,6 @@ _mutex_fork(struct pthread *curthread) _thr_umtx_init(&m->m_lock); TAILQ_INIT(&m->m_queue); } -#endif } int |