2006-12-11 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mono / metadata / threads.h
index 905bd9495f5b6ffe4198e6a404704f36488cb405..b7f11b765c0e944c52e22899f4f0715939357495 100644 (file)
@@ -22,6 +22,7 @@ extern int  mono_thread_get_abort_signal (void);
 
 extern void mono_thread_init (MonoThreadStartCB start_cb,
                              MonoThreadAttachCB attach_cb);
+extern void mono_thread_cleanup (void);
 extern void mono_thread_manage(void);
 extern void mono_thread_abort_all_other_threads (void);
 extern void mono_thread_suspend_all_other_threads (void);
@@ -42,16 +43,7 @@ extern MonoThread *mono_thread_get_main (void);
 
 extern void mono_thread_stop (MonoThread *thread);
 
-typedef struct {
-       gpointer (* thread_start_compile_func) (MonoMethod *delegate);
-       void (* thread_created) (guint32 tid, gpointer stack_start, gpointer func);
-       void (* start_resume) (guint32 tid);
-       void (* end_resume) (guint32 tid);
-} MonoThreadCallbacks;
-
-extern void mono_install_thread_callbacks (MonoThreadCallbacks *callbacks);
-
-extern void mono_thread_new_init (guint32 tid, gpointer stack_start,
+extern void mono_thread_new_init (gsize tid, gpointer stack_start,
                                  gpointer func);
 extern void mono_thread_create (MonoDomain *domain, gpointer func, gpointer arg);
 extern MonoThread *mono_thread_attach (MonoDomain *domain);
@@ -65,9 +57,7 @@ extern guint32 mono_threads_get_default_stacksize (void);
 guint32  mono_alloc_special_static_data (guint32 static_type, guint32 size, guint32 align);
 gpointer mono_get_special_static_data   (guint32 offset);
 
-void mono_gc_stop_world (void);
-
-void mono_gc_start_world (void);
+void mono_threads_request_thread_dump (void);
 
 extern MonoException* mono_thread_request_interruption (gboolean running_managed);
 extern gboolean mono_thread_interruption_requested (void);