|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH] thread-posix: optimize qemu_sem_timedwait with zero timeout |
Date: | Wed, 23 Feb 2022 11:44:43 +0100 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 |
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(-)
[Prev in Thread] | Current Thread | [Next in Thread] |