Don't use a G_LOCK, as it isn't necessary.
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Tue, 5 Sep 2000 08:58:20 +0000 (08:58 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Tue, 5 Sep 2000 08:58:20 +0000 (08:58 +0000)
2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gthread.c (g_thread_error_quark): Don't use a G_LOCK, as it
isn't necessary.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gthread.c
gthread.c

index 1c63c85..e7af6f6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gthread.c (g_thread_error_quark): Don't use a G_LOCK, as it
+       isn't necessary.
+
 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gstring.c (g_string_free): Use g_return_val_if_fail instead of
index 1c63c85..e7af6f6 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gthread.c (g_thread_error_quark): Don't use a G_LOCK, as it
+       isn't necessary.
+
 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gstring.c (g_string_free): Use g_return_val_if_fail instead of
index 1c63c85..e7af6f6 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gthread.c (g_thread_error_quark): Don't use a G_LOCK, as it
+       isn't necessary.
+
 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gstring.c (g_string_free): Use g_return_val_if_fail instead of
index 1c63c85..e7af6f6 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gthread.c (g_thread_error_quark): Don't use a G_LOCK, as it
+       isn't necessary.
+
 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gstring.c (g_string_free): Use g_return_val_if_fail instead of
index 1c63c85..e7af6f6 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gthread.c (g_thread_error_quark): Don't use a G_LOCK, as it
+       isn't necessary.
+
 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gstring.c (g_string_free): Use g_return_val_if_fail instead of
index 1c63c85..e7af6f6 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gthread.c (g_thread_error_quark): Don't use a G_LOCK, as it
+       isn't necessary.
+
 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gstring.c (g_string_free): Use g_return_val_if_fail instead of
index 1c63c85..e7af6f6 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gthread.c (g_thread_error_quark): Don't use a G_LOCK, as it
+       isn't necessary.
+
 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gstring.c (g_string_free): Use g_return_val_if_fail instead of
index 1c63c85..e7af6f6 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gthread.c (g_thread_error_quark): Don't use a G_LOCK, as it
+       isn't necessary.
+
 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gstring.c (g_string_free): Use g_return_val_if_fail instead of
index 654138f..034e771 100644 (file)
@@ -55,14 +55,8 @@ GQuark
 g_thread_error_quark()
 {
   static GQuark quark;
-  G_LOCK_DEFINE_STATIC(lock);
   if (!quark)
-  {
-    G_LOCK (lock);
-    if (!quark)
-      quark = g_quark_from_static_string ("g-thread-error");
-    G_UNLOCK (lock);
-  }
+    quark = g_quark_from_static_string ("g_thread_error");
   return quark;
 }
 
index 654138f..034e771 100644 (file)
--- a/gthread.c
+++ b/gthread.c
@@ -55,14 +55,8 @@ GQuark
 g_thread_error_quark()
 {
   static GQuark quark;
-  G_LOCK_DEFINE_STATIC(lock);
   if (!quark)
-  {
-    G_LOCK (lock);
-    if (!quark)
-      quark = g_quark_from_static_string ("g-thread-error");
-    G_UNLOCK (lock);
-  }
+    quark = g_quark_from_static_string ("g_thread_error");
   return quark;
 }