diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-06-29 15:27:40 +0200 |
---|---|---|
committer | Fam Zheng <famz@redhat.com> | 2017-07-17 11:28:15 +0800 |
commit | 667221c10d05a22573dae1928880bca525f8cd20 (patch) | |
tree | bb15947cc81b0073b1f4903b76036a2bf1306d9f /tests/test-logging.c | |
parent | a8c57408cd5443186c5b1c7a393702b316d4722b (diff) |
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 'tests/test-logging.c')
0 files changed, 0 insertions, 0 deletions