[mono/mono] c94acdd0: [runtime] Add a missing file.

"Zoltan Varga ([email protected])" <[email protected]>
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <00000141cc4eb655-627ab083-044f-4c9c-b5c9-e280a5f8a2a8-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/mono
  Compare: https://github.com/mono/mono/compare/2735588c0c11...c94acdd08549

   Commit: c94acdd08549f5807d8e66d63f227faa5dc6ccc7
   Author: Zoltan Varga <[email protected]> (vargaz)
     Date: 2013-10-18 16:01:44 GMT
      URL: https://github.com/mono/mono/commit/c94acdd08549f5807d8e66d63f227faa5dc6ccc7

[runtime] Add a missing file.

Added paths:
  A mono/utils/mono-tls.c

Added: mono/utils/mono-tls.c
===================================================================
@@ -0,0 +1,35 @@
+/*
+ * mono-tls.c: Low-level TLS support
+ *
+ * Copyright 2013 Xamarin, Inc (http://www.xamarin.com)
+ */
+
+#include "mono-tls.h"
+
+static int tls_offsets [TLS_KEY_NUM];
+static gboolean tls_offset_set [TLS_KEY_NUM];
+
+/*
+ * mono_tls_key_get_offset:
+ *
+ *   Return the TLS offset used by the TLS var identified by KEY, previously initialized by a call to
+ * mono_tls_key_set_offset (). Return -1 if the offset is not known.
+ */
+int
+mono_tls_key_get_offset (MonoTlsKey key)
+{
+	g_assert (tls_offset_set [key]);
+	return tls_offsets [key];
+}
+
+/*
+ * mono_tls_key_set_offset:
+ *
+ *   Set the TLS offset used by the TLS var identified by KEY.
+ */
+void
+mono_tls_key_set_offset (MonoTlsKey key, int offset)
+{
+	tls_offsets [key] = offset;
+	tls_offset_set [key] = TRUE;
+}


_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.