2005-12-23 Dick Porter <dick@ximian.com>
[mono.git] / mono / metadata / threads.h
index 13de557cd684b2df821f1cb5338f52649f263540..71fdc453acc19050efa9137260b1dfec64b7bbdd 100644 (file)
@@ -14,6 +14,8 @@
 #include <mono/metadata/object.h>
 #include <mono/metadata/appdomain.h>
 
+G_BEGIN_DECLS
+
 typedef void (*MonoThreadCleanupFunc) (MonoThread* thread);
 
 extern int  mono_thread_get_abort_signal (void);
@@ -42,14 +44,14 @@ 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);
+       void (* thread_created) (gsize tid, gpointer stack_start, gpointer func);
+       void (* start_resume) (gsize tid);
+       void (* end_resume) (gsize 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);
@@ -73,4 +75,6 @@ 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_ */