Skip to content
Snippets Groups Projects
Commit 657ac98b authored by Longpeng (Mike)'s avatar Longpeng (Mike) Committed by Paolo Bonzini
Browse files

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: default avatarLongpeng(Mike) <longpeng2@huawei.com>
Message-Id: <20220222090507.2028-3-longpeng2@huawei.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent f9fc8932
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment