[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] osdep: initialize glib threads in all QEMU tool
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH] osdep: initialize glib threads in all QEMU tools |
Date: |
Tue, 08 Oct 2013 15:08:17 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9 |
Il 08/10/2013 14:25, Kevin Wolf ha scritto:
> The glib documentation says:
>
> Since version 2.24, calling g_thread_init() multiple times is
> allowed, but nothing happens except for the first call.
>
> I take that this means previously it wasn't allowed. qemu's configure
> checks for a minimum version of 2.12, so we seems to support glib
> versions that don't allow g_thread_init() to be called multiple times.
>
> Do we need to protect against this?
I think that's the point of the "if (!g_thread_supported ())" tests.
Paolo