mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 15:55:33 +00:00
7ff5f05c82
Use atomic_or() for atomic bitmaps where several threads may set bits at the same time. This avoids the race condition between threads loading an element, bitwise ORing, and then storing the element. When setting all bits in a word we can avoid atomic ops and instead just use an smp_mb() at the end. Most bitmap users don't need atomicity so introduce new functions. Backports commit 9f02cfc84b85929947b32fe1674fbc6a429f332a from qemu |
||
---|---|---|
.. | ||
aes.c | ||
bitmap.c | ||
bitops.c | ||
crc32c.c | ||
cutils.c | ||
error.c | ||
getauxval.c | ||
host-utils.c | ||
Makefile.objs | ||
module.c | ||
oslib-posix.c | ||
oslib-win32.c | ||
qemu-error.c | ||
qemu-thread-posix.c | ||
qemu-thread-win32.c | ||
qemu-timer-common.c |