diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2017-01-12 19:07:54 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2017-01-16 13:25:18 +0000 |
| commit | fbcc3e5004f01653b2885965c59cade25e286c18 (patch) | |
| tree | ccdd40452c6ddce192c33a68832726fde7ee51f9 /include/qemu/thread.h | |
| parent | d7c99a1282ca2de1c344b8aa91be5364e9c6aa8f (diff) | |
| download | focaccia-qemu-fbcc3e5004f01653b2885965c59cade25e286c18.tar.gz focaccia-qemu-fbcc3e5004f01653b2885965c59cade25e286c18.zip | |
qemu-thread: optimize QemuLockCnt with futexes on Linux
This is complex, but I think it is reasonably documented in the source. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20170112180800.21085-5-pbonzini@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/qemu/thread.h')
| -rw-r--r-- | include/qemu/thread.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/thread.h b/include/qemu/thread.h index 5f7de7bd1f..9910f49b3a 100644 --- a/include/qemu/thread.h +++ b/include/qemu/thread.h @@ -100,7 +100,9 @@ static inline void qemu_spin_unlock(QemuSpin *spin) } struct QemuLockCnt { +#ifndef CONFIG_LINUX QemuMutex mutex; +#endif unsigned count; }; |