[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Avoid multiple inclusion of qemu-lock.h
From: |
Lionel Landwerlin |
Subject: |
[Qemu-devel] [PATCH] Avoid multiple inclusion of qemu-lock.h |
Date: |
Mon, 26 Jan 2009 22:28:29 +0100 |
Avoid multiple inclusion of qemu-lock.h
Signed-off-by: Lionel Landwerlin <address@hidden>
diff --git a/qemu-lock.h b/qemu-lock.h
index 26661ba..ce1c466 100644
--- a/qemu-lock.h
+++ b/qemu-lock.h
@@ -24,6 +24,9 @@
likely to release it soon. In environments where you have more threads
than physical CPUs (the extreme case being a single CPU host) a spinlock
simply wastes CPU until the OS decides to preempt it. */
+#ifndef QEMU_LOCK_H
+#define QEMU_LOCK_H
+
#if defined(USE_NPTL)
#include <pthread.h>
@@ -246,3 +249,5 @@ static inline int spin_trylock(spinlock_t *lock)
#endif
#endif
+
+#endif /* QEMU_LOCK_H */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] Avoid multiple inclusion of qemu-lock.h,
Lionel Landwerlin <=