mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 21:16:15 +01:00
Correct link to discussion about CRITICAL_SECTIONs vs. mutexes. Thanks to
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.
This commit is contained in:
parent
08e5183b36
commit
9216f204e5
@ -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>
|
2006-08-15 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* === Released 2.12.2 ===
|
* === Released 2.12.2 ===
|
||||||
|
@ -591,10 +591,10 @@ g_thread_impl_init ()
|
|||||||
InitializeCriticalSection (&g_thread_global_spinlock);
|
InitializeCriticalSection (&g_thread_global_spinlock);
|
||||||
|
|
||||||
/* Here we are looking for TryEnterCriticalSection in KERNEL32.DLL,
|
/* Here we are looking for TryEnterCriticalSection in KERNEL32.DLL,
|
||||||
* if it is found, we can use the faster critical sections instead
|
* if it is found, we can use the in general faster critical
|
||||||
* of mutexes. Note however that
|
* sections instead of mutexes. See
|
||||||
* http://www2.awl.com/cseng/titles/0-201-63465-1/csmutx.htm indicates,
|
* http://world.std.com/~jmhart/csmutx.htm for some discussion.
|
||||||
* that critical sections might not be ideal after all on SMP machines */
|
*/
|
||||||
kernel32 = GetModuleHandle ("KERNEL32.DLL");
|
kernel32 = GetModuleHandle ("KERNEL32.DLL");
|
||||||
if (kernel32)
|
if (kernel32)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user