diff options
author | Paolo Bonzini | 2013-09-25 08:20:57 +0200 |
---|---|---|
committer | Paolo Bonzini | 2013-10-17 17:24:15 +0200 |
commit | ea753d81e8b085d679f13e4a6023e003e9854d51 (patch) | |
tree | 072bf3d6c7a3bd8726fe767cbf90470b7172ebce /include/qemu/timer.h | |
parent | vga: Mark relevant portio lists regions as coalesced MMIO flushing (diff) | |
download | qemu-ea753d81e8b085d679f13e4a6023e003e9854d51.tar.gz qemu-ea753d81e8b085d679f13e4a6023e003e9854d51.tar.xz qemu-ea753d81e8b085d679f13e4a6023e003e9854d51.zip |
seqlock: introduce read-write seqlock
Seqlock implementation for QEMU. Usage idiom
reader:
do {
start = seqlock_read_begin(&sl);
...
} while (seqlock_read_retry(&sl, start));
writer:
seqlock_write_lock(&sl);
...
seqlock_write_unlock(&sl);
initialization:
seqlock_init(QemuSeqLock *sl, QemuMutex *mutex)
mutex could be NULL if the caller will provide its own protection
for concurrent write sides (typically using the BQL).
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qemu/timer.h')
0 files changed, 0 insertions, 0 deletions