Home
last modified time | relevance | path

Searched hist:"657 ac98b" (Results 1 – 1 of 1) sorted by relevance

/qemu/util/
H A Dqemu-thread-posix.c657ac98b Tue Feb 22 09:05:05 GMT 2022 Longpeng(Mike) <longpeng2@huawei.com> thread-posix: use monotonic clock for QemuCond and QemuSemaphore

Use CLOCK_MONOTONIC, so the timeout isn't affected by changes to
the system time. It depends on the pthread_condattr_setclock(),
while some systems(e.g. mac os) does not support it, so the behavior
won't change in these systems.

Signed-off-by: Longpeng(Mike) <longpeng2@huawei.com>
Message-Id: <20220222090507.2028-3-longpeng2@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>