diff options
| author | Longpeng(Mike) | 2022-02-22 10:05:05 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2022-04-06 14:31:56 +0200 |
| commit | 657ac98b58cee10e99c9d402bda4555fd0ec4d1f (patch) | |
| tree | 8b26f839c378811d1eacb346f09e464996bd53a4 /include | |
| parent | thread-posix: remove the posix semaphore support (diff) | |
| download | qemu-657ac98b58cee10e99c9d402bda4555fd0ec4d1f.tar.gz qemu-657ac98b58cee10e99c9d402bda4555fd0ec4d1f.tar.xz qemu-657ac98b58cee10e99c9d402bda4555fd0ec4d1f.zip | |
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
