do not call g_thread_init() for glib >= 2.31
commitf33cc84dd4af7776309d118412df008ec4108a57
authorMichael Tokarev <mjt@tls.msk.ru>
Fri, 2 May 2014 14:35:55 +0000 (2 18:35 +0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 7 May 2014 17:00:43 +0000 (7 21:00 +0400)
tree74e48586df6aa4df8ee651827f30e2ed55d27e02
parent69b15212d761889b2768b654f09a0eac78951674
do not call g_thread_init() for glib >= 2.31

glib >= 2.31 always enables thread support and g_thread_supported()
is #defined to 1, there's no need to call g_thread_init() anymore,
and it definitely does not need to report error which never happens.
Keep code for old < 2.31 glibc anyway for now, just #ifdef it
differently.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Cc: qemu-trivial@nongnu.org
coroutine-gthread.c
util/osdep.c