configure | 11 +++++++++ include/qemu/thread-posix.h | 4 ++++ include/qemu/thread-win32.h | 4 ++++ util/qemu-thread-common.h | 55 +++++++++++++++++++++++++++++++++++++++++++++ tests/atomic_add-bench.c | 19 ++++++++++++++-- util/qemu-thread-posix.c | 19 +++++++--------- util/qemu-thread-win32.c | 17 +++++++------- 7 files changed, 107 insertions(+), 22 deletions(-) create mode 100644 util/qemu-thread-common.h