+/*
+ * timed-thread.c: Implementation of timed thread joining
+ *
+ * Author:
+ * Dick Porter (dick@ximian.com)
+ *
+ * (C) 2002 Ximian, Inc.
+ */
+
#include <config.h>
#include <glib.h>
#if HAVE_BOEHM_GC
pthread_once(&timed_thread_once, timed_thread_init);
pthread_setspecific(timed_thread_key, (void *)thread);
+ pthread_detach(thread->id);
_wapi_timed_thread_exit(thread->start_routine(thread->arg));
}
return(result);
}
- pthread_detach(thread->id);
return(0);
}
return(result);
}
+void _wapi_timed_thread_destroy (TimedThread *thread)
+{
+ mono_mutex_destroy (&thread->join_mutex);
+ pthread_cond_destroy (&thread->exit_cond);
+
+ g_free(thread);
+}