* src/threads/posix/thread-posix.cpp (threads_impl_thread_free): Removed. It was
authorStefan Ring <stefan@complang.tuwien.ac.at>
Sat, 22 Jan 2011 13:35:36 +0000 (14:35 +0100)
committerStefan Ring <stefan@complang.tuwien.ac.at>
Sat, 22 Jan 2011 13:35:36 +0000 (14:35 +0100)
commented-out already anyway.
* src/threads/thread.hpp: Likewise.

src/threads/posix/thread-posix.cpp
src/threads/thread.hpp

index a68cede39cf91c405bd86f2180fd3f137c519e65..ce67723f47f6a73839a2e647013393f9f51ba5b7 100644 (file)
@@ -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.
index ba599f15f21007fbdc861ed39f7319f2ec3f0674..25f7c9b2515b7f4b5083125831ff8a4e1c447b1b 100644 (file)
@@ -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);