* object-internals.h, threads.c, domain.c: add accessors for
the MonoThread and MonoDomain tls keys.
svn path=/trunk/mono/; revision=37963
+
+Mon Dec 20 12:19:37 CET 2004 Paolo Molaro <lupus@ximian.com>
+
+ * object-internals.h, threads.c, domain.c: add accessors for
+ the MonoThread and MonoDomain tls keys.
+
2004-12-18 Martin Baulig <martin@ximian.com>
* class.c (inflate_generic_type): If we're inflating a generic
static RuntimeInfo*
get_runtime_by_version (const char *version);
+guint32
+mono_domain_get_tls_key (void)
+{
+ return appdomain_thread_id;
+}
+
static MonoJitInfoTable *
mono_jit_info_table_new (void)
{
void
mono_type_initialization_init (void);
+guint32
+mono_thread_get_tls_key (void);
+
+guint32
+mono_dmoain_get_tls_key (void);
+
/* Reflection and Reflection.Emit support */
/*
/* global count of thread interruptions requested */
static gint32 thread_interruption_requested = 0;
+guint32
+mono_thread_get_tls_key (void)
+{
+ return current_object_key;
+}
/* handle_store() and handle_remove() manage the array of threads that
* still need to be waited for when the main thread exits.