From: Paolo Bonzini <pbonzini@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>, qemu-devel@nongnu.org
Cc: "Alex Bennée" <alex.bennee@linaro.org>,
"Markus Armbruster" <armbru@redhat.com>,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>
Subject: Re: [PATCH v2 0/2] thread: add lock guard macros
Date: Mon, 16 Mar 2020 12:29:24 +0100 [thread overview]
Message-ID: <c0442ea6-fe5c-a246-96ad-f32c10db11b3@redhat.com> (raw)
In-Reply-To: <20200316110957.449700-1-stefanha@redhat.com>
On 16/03/20 12:09, Stefan Hajnoczi wrote:
> Lock guards automatically call qemu_(rec_)mutex_unlock() when returning from a
> function or leaving leaving a lexical scope. This simplifies code and
> eliminates leaks (especially in error code paths).
>
> This series adds lock guards for QemuMutex and QemuRecMutex. It does not
> convert the entire tree but includes example conversions.
>
> Stefan Hajnoczi (2):
> lockable: add lock guards
> lockable: add QemuRecMutex support
>
> include/qemu/lockable.h | 67 +++++++++++++++++++++++++++++++++++++++++
> plugins/core.c | 7 ++---
> plugins/loader.c | 16 +++++-----
> util/qemu-timer.c | 23 +++++++-------
> 4 files changed, 89 insertions(+), 24 deletions(-)
>
Queued, thanks.
Paolo
prev parent reply other threads:[~2020-03-16 11:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-16 11:09 [PATCH v2 0/2] thread: add lock guard macros Stefan Hajnoczi
2020-03-16 11:09 ` [PATCH v2 1/2] lockable: add lock guards Stefan Hajnoczi
2020-03-16 11:09 ` [PATCH v2 2/2] lockable: add QemuRecMutex support Stefan Hajnoczi
2020-03-16 11:29 ` Paolo Bonzini [this message]
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=c0442ea6-fe5c-a246-96ad-f32c10db11b3@redhat.com \
--to=pbonzini@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=armbru@redhat.com \
--cc=dgilbert@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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).