diff options
| author | Paolo Bonzini | 2017-06-29 15:27:40 +0200 |
|---|---|---|
| committer | Fam Zheng | 2017-07-17 05:28:15 +0200 |
| commit | 667221c10d05a22573dae1928880bca525f8cd20 (patch) | |
| tree | bb15947cc81b0073b1f4903b76036a2bf1306d9f /scripts/modules/module_block.py | |
| parent | qcow2: call CoQueue APIs under CoMutex (diff) | |
| download | qemu-667221c10d05a22573dae1928880bca525f8cd20.tar.gz qemu-667221c10d05a22573dae1928880bca525f8cd20.tar.xz 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/modules/module_block.py')
0 files changed, 0 insertions, 0 deletions
