On 05/31/2017 04:43 AM, Paolo Bonzini wrote: > These functions are more efficient in the presence of contention. > qemu_co_rwlock_downgrade also guarantees not to block, which may > be useful in some algorithms too. > > Signed-off-by: Paolo Bonzini > --- > include/qemu/coroutine.h | 19 +++++++++++++++++++ > util/qemu-coroutine-lock.c | 35 +++++++++++++++++++++++++++++++++++ > 2 files changed, 54 insertions(+) > Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org