mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
Delay allocation until after all g_return_val_if_fail ().
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib/gthread.c (g_thread_create_full): Delay allocation until after all g_return_val_if_fail (). * glib/gthread.h: Make depth member guint for cosmetic reasons. * glib/gthread.c: (g_static_rec_mutex_unlock_full): depth should be unsigned. All that spotted by Jrgen Viksell <jorgen.viksell@telia.com>
This commit is contained in:
parent
cf67c99825
commit
cb17f230b5
11
ChangeLog
11
ChangeLog
@ -1,3 +1,14 @@
|
||||
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
||||
after all g_return_val_if_fail ().
|
||||
|
||||
* glib/gthread.h: Make depth member guint for cosmetic reasons.
|
||||
|
||||
* glib/gthread.c: (g_static_rec_mutex_unlock_full): depth should
|
||||
be unsigned. All that spotted by Jörgen Viksell
|
||||
<jorgen.viksell@telia.com>
|
||||
|
||||
2002-02-02 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib/gmain.c
|
||||
|
@ -1,3 +1,14 @@
|
||||
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
||||
after all g_return_val_if_fail ().
|
||||
|
||||
* glib/gthread.h: Make depth member guint for cosmetic reasons.
|
||||
|
||||
* glib/gthread.c: (g_static_rec_mutex_unlock_full): depth should
|
||||
be unsigned. All that spotted by Jörgen Viksell
|
||||
<jorgen.viksell@telia.com>
|
||||
|
||||
2002-02-02 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib/gmain.c
|
||||
|
@ -1,3 +1,14 @@
|
||||
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
||||
after all g_return_val_if_fail ().
|
||||
|
||||
* glib/gthread.h: Make depth member guint for cosmetic reasons.
|
||||
|
||||
* glib/gthread.c: (g_static_rec_mutex_unlock_full): depth should
|
||||
be unsigned. All that spotted by Jörgen Viksell
|
||||
<jorgen.viksell@telia.com>
|
||||
|
||||
2002-02-02 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib/gmain.c
|
||||
|
@ -1,3 +1,14 @@
|
||||
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
||||
after all g_return_val_if_fail ().
|
||||
|
||||
* glib/gthread.h: Make depth member guint for cosmetic reasons.
|
||||
|
||||
* glib/gthread.c: (g_static_rec_mutex_unlock_full): depth should
|
||||
be unsigned. All that spotted by Jörgen Viksell
|
||||
<jorgen.viksell@telia.com>
|
||||
|
||||
2002-02-02 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib/gmain.c
|
||||
|
@ -1,3 +1,14 @@
|
||||
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
||||
after all g_return_val_if_fail ().
|
||||
|
||||
* glib/gthread.h: Make depth member guint for cosmetic reasons.
|
||||
|
||||
* glib/gthread.c: (g_static_rec_mutex_unlock_full): depth should
|
||||
be unsigned. All that spotted by Jörgen Viksell
|
||||
<jorgen.viksell@telia.com>
|
||||
|
||||
2002-02-02 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib/gmain.c
|
||||
|
@ -1,3 +1,14 @@
|
||||
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
||||
after all g_return_val_if_fail ().
|
||||
|
||||
* glib/gthread.h: Make depth member guint for cosmetic reasons.
|
||||
|
||||
* glib/gthread.c: (g_static_rec_mutex_unlock_full): depth should
|
||||
be unsigned. All that spotted by Jörgen Viksell
|
||||
<jorgen.viksell@telia.com>
|
||||
|
||||
2002-02-02 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib/gmain.c
|
||||
|
@ -1,3 +1,14 @@
|
||||
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
||||
after all g_return_val_if_fail ().
|
||||
|
||||
* glib/gthread.h: Make depth member guint for cosmetic reasons.
|
||||
|
||||
* glib/gthread.c: (g_static_rec_mutex_unlock_full): depth should
|
||||
be unsigned. All that spotted by Jörgen Viksell
|
||||
<jorgen.viksell@telia.com>
|
||||
|
||||
2002-02-02 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib/gmain.c
|
||||
|
@ -1,3 +1,14 @@
|
||||
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
||||
after all g_return_val_if_fail ().
|
||||
|
||||
* glib/gthread.h: Make depth member guint for cosmetic reasons.
|
||||
|
||||
* glib/gthread.c: (g_static_rec_mutex_unlock_full): depth should
|
||||
be unsigned. All that spotted by Jörgen Viksell
|
||||
<jorgen.viksell@telia.com>
|
||||
|
||||
2002-02-02 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib/gmain.c
|
||||
|
@ -318,7 +318,7 @@ g_static_rec_mutex_lock_full (GStaticRecMutex *mutex,
|
||||
guint
|
||||
g_static_rec_mutex_unlock_full (GStaticRecMutex *mutex)
|
||||
{
|
||||
gint depth;
|
||||
guint depth;
|
||||
|
||||
g_return_val_if_fail (mutex, 0);
|
||||
|
||||
@ -549,12 +549,14 @@ g_thread_create_full (GThreadFunc func,
|
||||
GThreadPriority priority,
|
||||
GError **error)
|
||||
{
|
||||
GRealThread* result = g_new (GRealThread, 1);
|
||||
GRealThread* result;
|
||||
GError *local_error = NULL;
|
||||
g_return_val_if_fail (func, NULL);
|
||||
g_return_val_if_fail (priority >= G_THREAD_PRIORITY_LOW, NULL);
|
||||
g_return_val_if_fail (priority <= G_THREAD_PRIORITY_URGENT, NULL);
|
||||
|
||||
result = g_new (GRealThread, 1);
|
||||
|
||||
result->thread.joinable = joinable;
|
||||
result->thread.priority = priority;
|
||||
result->thread.func = func;
|
||||
|
@ -243,7 +243,7 @@ typedef struct _GStaticRecMutex GStaticRecMutex;
|
||||
struct _GStaticRecMutex
|
||||
{
|
||||
GStaticMutex mutex;
|
||||
unsigned int depth;
|
||||
guint depth;
|
||||
GSystemThread owner;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user