diff options
author | Longpeng(Mike) <longpeng2@huawei.com> | 2022-02-22 17:05:05 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-04-06 14:31:56 +0200 |
commit | 657ac98b58cee10e99c9d402bda4555fd0ec4d1f (patch) | |
tree | 8b26f839c378811d1eacb346f09e464996bd53a4 /include | |
parent | f9fc8932b11f3bcf2a2626f567cb6fdd36a33a94 (diff) |
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions