diff options
| author | Paolo Bonzini | 2022-02-21 12:46:32 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2022-04-06 14:31:56 +0200 |
| commit | 8ab3026489eafa9da07c09f1929593fe0db5e380 (patch) | |
| tree | 8bfe3578de68aeea179e7a5878c71501d2ed298c /include | |
| parent | thread-posix: implement Semaphore with QemuCond and QemuMutex (diff) | |
| download | qemu-8ab3026489eafa9da07c09f1929593fe0db5e380.tar.gz qemu-8ab3026489eafa9da07c09f1929593fe0db5e380.tar.xz qemu-8ab3026489eafa9da07c09f1929593fe0db5e380.zip | |
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.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
