summary refs log tree commit diff stats
path: root/scripts/qapi-commands.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2017-06-29 15:27:40 +0200
committerFam Zheng <famz@redhat.com>2017-07-17 11:28:15 +0800
commit667221c10d05a22573dae1928880bca525f8cd20 (patch)
treebb15947cc81b0073b1f4903b76036a2bf1306d9f /scripts/qapi-commands.py
parenta8c57408cd5443186c5b1c7a393702b316d4722b (diff)
downloadfocaccia-qemu-667221c10d05a22573dae1928880bca525f8cd20.tar.gz
focaccia-qemu-667221c10d05a22573dae1928880bca525f8cd20.zip
coroutine-lock: add qemu_co_rwlock_downgrade and qemu_co_rwlock_upgrade
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.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20170629132749.997-3-pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions