Correct link to discussion about CRITICAL_SECTIONs vs. mutexes. Thanks to
authorTor Lillqvist <tml@novell.com>
Thu, 28 Dec 2006 10:48:39 +0000 (10:48 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Thu, 28 Dec 2006 10:48:39 +0000 (10:48 +0000)
2006-12-28  Tor Lillqvist  <tml@novell.com>

* gthread-win32.c (g_thread_impl_init): Correct link to discussion
about CRITICAL_SECTIONs vs. mutexes. Thanks to Felix Kater for
pointing this out.

gthread/ChangeLog
gthread/gthread-win32.c

index ec39c40279ef6aa24b1e118c65cbe5a052f261ec..121d60a95ce36d6be0bb0338013b84f0a3e820d3 100644 (file)
@@ -1,3 +1,9 @@
+2006-12-28  Tor Lillqvist  <tml@novell.com>
+
+       * gthread-win32.c (g_thread_impl_init): Correct link to discussion
+       about CRITICAL_SECTIONs vs. mutexes. Thanks to Felix Kater for
+       pointing this out.
+
 2006-08-15  Matthias Clasen  <mclasen@redhat.com>
 
        * === Released 2.12.2 ===
index 7b85b19235f7d54cb4245a000a4a7c0ac2a6557d..e6896e86d812a629710380caf2414c82892c6ca2 100644 (file)
@@ -591,10 +591,10 @@ g_thread_impl_init ()
   InitializeCriticalSection (&g_thread_global_spinlock);
 
   /* Here we are looking for TryEnterCriticalSection in KERNEL32.DLL,
-   * if it is found, we can use the faster critical sections instead
-   * of mutexes. Note however that
-   * http://www2.awl.com/cseng/titles/0-201-63465-1/csmutx.htm indicates,
-   * that critical sections might not be ideal after all on SMP machines */
+   * if it is found, we can use the in general faster critical
+   * sections instead of mutexes. See
+   * http://world.std.com/~jmhart/csmutx.htm for some discussion.
+   */
   kernel32 = GetModuleHandle ("KERNEL32.DLL");
   if (kernel32)
     {