* threads.c, threads.h: add accessor to get the pthread_key_t for
a tls id.
svn path=/trunk/mono/; revision=37955
+
+Mon Dec 20 11:58:33 CET 2004 Paolo Molaro <lupus@ximian.com>
+
+ * threads.c, threads.h: add accessor to get the pthread_key_t for
+ a tls id.
+
2004-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* io.c: check for the existence of 'dest' and set ERROR_ALREADY_EXISTS
static gboolean TLS_used[TLS_MINIMUM_AVAILABLE]={FALSE};
static guint32 TLS_spinlock=0;
+guint32
+mono_pthread_key_for_tls (guint32 idx)
+{
+ return (guint32)TLS_keys [idx];
+}
+
/**
* TlsAlloc:
*
extern gpointer GetCurrentThread(void);
extern guint32 ResumeThread(gpointer handle);
extern guint32 SuspendThread(gpointer handle);
+extern guint32 mono_pthread_key_for_tls (guint32 idx);
extern guint32 TlsAlloc(void);
extern gboolean TlsFree(guint32 idx);
extern gpointer TlsGetValue(guint32 idx);