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
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
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 +++