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:
Sebastian Wilhelmi 2000-09-05 08:58:20 +00:00 committed by Sebastian Wilhelmi
parent 702f1d12d0
commit 3ca18629b0
10 changed files with 42 additions and 14 deletions

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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;
}

View 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;
}