Relax g_thread_init() requirements
authorAlexander Larsson <alexl@redhat.com>
Tue, 12 Jan 2010 20:16:59 +0000 (21:16 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 12 Jan 2010 20:37:20 +0000 (21:37 +0100)
commit0df3ca8f9bbb624b219ecdb25d3fe8aa4a51d953
tree326a7a19dc147da61da3448fb182f06b9f6a248b
parent74ad124cfba3278c385d177a527f19574fda9670
Relax g_thread_init() requirements

We now allow g_thread_init(NULL) to be called after other glib calls (with
some minor limitations). This is mainly a documentation change as this
really was already possible.

We also allow g_thread_init() to be called multiple times. Only the
first call actually initializes the threading system, further calls
are ignored (but print a warning if the argument is not NULL).

https://bugzilla.gnome.org/show_bug.cgi?id=606775
docs/reference/glib/tmpl/threads.sgml
gthread/gthread-impl.c