From: Stefan Hajnoczi <stefanha@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: mario.dechenno@unina2.it, Paolo Bonzini <pbonzini@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] osdep: initialize glib threads in all QEMU tools
Date: Wed, 9 Oct 2013 10:31:41 +0200 [thread overview]
Message-ID: <20131009083141.GB25631@stefanha-thinkpad.muc.redhat.com> (raw)
In-Reply-To: <20131008135824.GJ25109@dhcp-200-207.str.redhat.com>
On Tue, Oct 08, 2013 at 03:58:24PM +0200, Kevin Wolf wrote:
> Am 08.10.2013 um 15:08 hat Paolo Bonzini geschrieben:
> > 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.
>
> Ah yes, I think you're right. Not the best function name I've ever seen
> that glib uses there, but okay.
That's correct, g_thread_support() is there to initialize once only.
Stefan
next prev parent reply other threads:[~2013-10-09 8:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-08 9:58 [Qemu-devel] [PATCH] osdep: initialize glib threads in all QEMU tools Stefan Hajnoczi
2013-10-08 12:25 ` Kevin Wolf
2013-10-08 13:08 ` Paolo Bonzini
2013-10-08 13:58 ` Kevin Wolf
2013-10-09 8:31 ` Stefan Hajnoczi [this message]
2014-03-23 15:56 ` Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131009083141.GB25631@stefanha-thinkpad.muc.redhat.com \
--to=stefanha@redhat.com \
--cc=kwolf@redhat.com \
--cc=mario.dechenno@unina2.it \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).