All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philippe.mathieu.daude@gmail.com>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: "Longpeng\(Mike\)" <longpeng2@huawei.com>
Subject: Re: [PATCH] thread-posix: optimize qemu_sem_timedwait with zero timeout
Date: Wed, 23 Feb 2022 11:44:43 +0100	[thread overview]
Message-ID: <aae09db2-2691-6e24-ee30-4f667461b70b@gmail.com> (raw)
In-Reply-To: <20220223083628.231589-1-pbonzini@redhat.com>

On 23/2/22 09:36, Paolo Bonzini wrote:
> In this case there is no need to call pthread_cond_timedwait; the
> function is just a trywait and waiting on the condition variable would
> always time out.
> 
> Based-on: <20220222090507.2028-1-longpeng2@huawei.com>

^ Please remove when applying.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

> Cc: "Longpeng(Mike)" <longpeng2@huawei.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>   util/qemu-thread-posix.c | 8 ++++++--
>   1 file changed, 6 insertions(+), 2 deletions(-)


      parent reply	other threads:[~2022-02-23 10:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-23  8:36 [PATCH] thread-posix: optimize qemu_sem_timedwait with zero timeout Paolo Bonzini
2022-02-23 10:27 ` longpeng2--- via
2022-02-23 10:44 ` Philippe Mathieu-Daudé [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=aae09db2-2691-6e24-ee30-4f667461b70b@gmail.com \
    --to=philippe.mathieu.daude@gmail.com \
    --cc=longpeng2@huawei.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.