mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Don't use a G_LOCK, as it isn't necessary.
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.
This commit is contained in:
parent
702f1d12d0
commit
3ca18629b0
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user