Re: [PATCH] thread-posix: optimize qemu_sem_timedwait with zero timeout

2022-02-23 Thread Philippe Mathieu-Daudé
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-longpe...@huawei.com> ^ Please remove when applying. Reviewed-by: P

RE: [PATCH] thread-posix: optimize qemu_sem_timedwait with zero timeout

2022-02-23 Thread longpeng2--- via
ct: [PATCH] thread-posix: optimize qemu_sem_timedwait with zero timeout > > 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-longpe...@hua

[PATCH] thread-posix: optimize qemu_sem_timedwait with zero timeout

2022-02-23 Thread Paolo Bonzini
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-longpe...@huawei.com> Cc: "Longpeng(Mike)" Signed-off-by: Paolo Bonzini --- util/qemu-thread-posix.c | 8 +++