diff options
author | 2014-12-02 12:05:47 +0100 | |
---|---|---|
committer | 2015-01-13 13:43:29 +0000 | |
commit | c740ad92d0d958fa785e5d7aa1b67ecaf30a6a54 (patch) | |
tree | 9294b5dcdf00456ad6f8823ef7891d76ff45e003 /qapi/qmp-input-visitor.c | |
parent | test-coroutine: avoid overflow on 32-bit systems (diff) | |
download | qemu-c740ad92d0d958fa785e5d7aa1b67ecaf30a6a54.tar.xz qemu-c740ad92d0d958fa785e5d7aa1b67ecaf30a6a54.zip |
QSLIST: add lock-free operations
These operations are trivial to implement and do not have ABA problems.
They are enough to implement simple multiple-producer, single consumer
lock-free lists or, as in the next patch, the multiple consumers can
steal a whole batch of elements and process them at their leisure.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 1417518350-6167-5-git-send-email-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qapi/qmp-input-visitor.c')
0 files changed, 0 insertions, 0 deletions