summaryrefslogtreecommitdiffstats
path: root/fsdev
diff options
context:
space:
mode:
authorPaolo Bonzini2018-02-03 16:39:33 +0100
committerFam Zheng2018-02-08 02:22:03 +0100
commit1a957cf9c4637abe4b7d67a91312a2565306641e (patch)
tree87e0fd36d854ef98c836615f6055c7203bb07f49 /fsdev
parentlockable: add QemuLockable (diff)
downloadqemu-1a957cf9c4637abe4b7d67a91312a2565306641e.tar.gz
qemu-1a957cf9c4637abe4b7d67a91312a2565306641e.tar.xz
qemu-1a957cf9c4637abe4b7d67a91312a2565306641e.zip
coroutine-lock: convert CoQueue to use QemuLockable
There are cases in which a queued coroutine must be restarted from non-coroutine context (with qemu_co_enter_next). In this cases, qemu_co_enter_next also needs to be thread-safe, but it cannot use a CoMutex and so cannot qemu_co_queue_wait. Use QemuLockable so that the CoQueue can interchangeably use CoMutex or QemuMutex. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20180203153935.8056-4-pbonzini@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'fsdev')
0 files changed, 0 insertions, 0 deletions