From e6571845c0eb52b0f784d2b0b7a6af2233d237c4 Mon Sep 17 00:00:00 2001 From: Stefan Ring Date: Sat, 22 Jan 2011 14:35:36 +0100 Subject: [PATCH] * src/threads/posix/thread-posix.cpp (threads_impl_thread_free): Removed. It was commented-out already anyway. * src/threads/thread.hpp: Likewise. --- src/threads/posix/thread-posix.cpp | 41 ------------------------------ src/threads/thread.hpp | 1 - 2 files changed, 42 deletions(-) diff --git a/src/threads/posix/thread-posix.cpp b/src/threads/posix/thread-posix.cpp index a68cede39..ce67723f4 100644 --- a/src/threads/posix/thread-posix.cpp +++ b/src/threads/posix/thread-posix.cpp @@ -533,47 +533,6 @@ void threads_impl_thread_reuse(threadobject *t) } -/* threads_impl_thread_free **************************************************** - - Cleanup thread stuff. - - IN: - t....the threadobject - -*******************************************************************************/ - -#if 0 -/* never used */ -void threads_impl_thread_free(threadobject *t) -{ - int result; - - /* Destroy the mutex and the condition. */ - - delete t->flc_lock; - - result = pthread_cond_destroy(&(t->flc_cond)); - - if (result != 0) - os::abort_errnum(result, "threads_impl_thread_free: pthread_cond_destroy failed"); - - delete t->waitmutex; - - result = pthread_cond_destroy(&(t->waitcond)); - - if (result != 0) - os::abort_errnum(result, "threads_impl_thread_free: pthread_cond_destroy failed"); - - delete t->suspendmutex; - - result = pthread_cond_destroy(&(t->suspendcond)); - - if (result != 0) - os::abort_errnum(result, "threads_impl_thread_free: pthread_cond_destroy failed"); -} -#endif - - /* threads_impl_preinit ******************************************************** Do some early initialization of stuff required. diff --git a/src/threads/thread.hpp b/src/threads/thread.hpp index ba599f15f..25f7c9b25 100644 --- a/src/threads/thread.hpp +++ b/src/threads/thread.hpp @@ -287,7 +287,6 @@ void threads_mutex_join_unlock(void); void threads_impl_thread_clear(threadobject *t); void threads_impl_thread_reuse(threadobject *t); -void threads_impl_thread_free(threadobject *t); void threads_impl_thread_start(threadobject *thread, functionptr f); void threads_yield(void); -- 2.25.1