]> git.proxmox.com Git - qemu.git/blobdiff - qemu-thread.h
qemu-nbd: print error messages from the daemon through a pipe
[qemu.git] / qemu-thread.h
index edc7ab68589e9b3875d19a886b4e64191485af27..e008b60028c8359f3fd57631034253362e2d79b0 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __QEMU_THREAD_H
 #define __QEMU_THREAD_H 1
 
+#include <inttypes.h>
+
 typedef struct QemuMutex QemuMutex;
 typedef struct QemuCond QemuCond;
 typedef struct QemuThread QemuThread;
@@ -17,6 +19,9 @@ void qemu_mutex_lock(QemuMutex *mutex);
 int qemu_mutex_trylock(QemuMutex *mutex);
 void qemu_mutex_unlock(QemuMutex *mutex);
 
+#define rcu_read_lock() do { } while (0)
+#define rcu_read_unlock() do { } while (0)
+
 void qemu_cond_init(QemuCond *cond);
 void qemu_cond_destroy(QemuCond *cond);