X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fthreads.h;h=6780c446fcddab4c865fdd39e44c34dc3a1a5c62;hb=f3f55453f7da3130a94802f923fbc785e2e7a987;hp=ea1a0fa6e062d536c763e341c6d129e6d657fb12;hpb=fb582e2b8e50cfdf008bdf330af9939c97a110af;p=mono.git diff --git a/mono/metadata/threads.h b/mono/metadata/threads.h index ea1a0fa6e06..6780c446fcd 100644 --- a/mono/metadata/threads.h +++ b/mono/metadata/threads.h @@ -11,39 +11,40 @@ #ifndef _MONO_METADATA_THREADS_H_ #define _MONO_METADATA_THREADS_H_ +#include #include #include +G_BEGIN_DECLS + typedef void (*MonoThreadCleanupFunc) (MonoThread* thread); 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); extern void mono_thread_push_appdomain_ref (MonoDomain *domain); extern void mono_thread_pop_appdomain_ref (void); +extern gboolean mono_thread_has_appdomain_ref (MonoThread *thread, MonoDomain *domain); extern MonoException * mono_thread_get_pending_exception (void); extern gboolean mono_threads_abort_appdomain_threads (MonoDomain *domain, int timeout); +extern void mono_threads_clear_cached_culture (MonoDomain *domain); extern MonoThread *mono_thread_current (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_thread_set_main (MonoThread *thread); +extern MonoThread *mono_thread_get_main (void); -extern void mono_install_thread_callbacks (MonoThreadCallbacks *callbacks); +extern void mono_thread_stop (MonoThread *thread); -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); @@ -57,13 +58,14 @@ 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); extern void mono_thread_interruption_checkpoint (void); +extern void mono_thread_force_interruption_checkpoint (void); extern gint32* mono_thread_interruption_request_flag (void); +G_END_DECLS + #endif /* _MONO_METADATA_THREADS_H_ */