Removed.
* src/threads/thread.cpp (thread_new): Moved code from
threads_impl_thread_init.
* src/threads/thread.hpp (threads_impl_thread_init): Removed.
#endif
-/* threads_impl_thread_init ****************************************************
-
- Initialize OS-level locking constructs in threadobject.
-
- IN:
- t....the threadobject
-
-*******************************************************************************/
-
-void threads_impl_thread_init(threadobject *t)
-{
- /* initialize the mutex and the condition */
-
- t->flc_lock = new Mutex();
- t->flc_cond = new Condition();
-
- t->waitmutex = new Mutex();
- t->waitcond = new Condition();
-
- t->suspendmutex = new Mutex();
- t->suspendcond = new Condition();
-
-#if defined(ENABLE_TLH)
- tlh_init(&(t->tlh));
-#endif
-}
-
/* threads_impl_thread_clear ***************************************************
Clears all fields in threadobject the way an MZERO would have
MZERO(t, threadobject, 1);
+ // Initialize the mutex and the condition.
+ t->flc_lock = new Mutex();
+ t->flc_cond = new Condition();
+
+ t->waitmutex = new Mutex();
+ t->waitcond = new Condition();
+
+ t->suspendmutex = new Mutex();
+ t->suspendcond = new Condition();
+
+#if defined(ENABLE_TLH)
+ tlh_init(&(t->tlh));
+#endif
+
#if defined(ENABLE_GC_CACAO)
/* Register reference to java.lang.Thread with the GC. */
/* FIXME is it ok to do this only once? */
gc_reference_register(&(t->object), GC_REFTYPE_THREADOBJECT);
gc_reference_register(&(t->_exceptionptr), GC_REFTYPE_THREADOBJECT);
#endif
-
- /* Initialize the implementation-specific bits. */
-
- threads_impl_thread_init(t);
}
/* Pre-compute the thinlock-word. */
void threads_mutex_join_lock(void);
void threads_mutex_join_unlock(void);
-void threads_impl_thread_init(threadobject *t);
void threads_impl_thread_clear(threadobject *t);
void threads_impl_thread_reuse(threadobject *t);
void threads_impl_thread_free(threadobject *t);