void cond_signal (struct condition *, struct lock *);
void cond_broadcast (struct condition *, struct lock *);
-/* Memory barrier.
+/* Optimization barrier.
- The compiler will not reorder operations that access memory
- across a memory barrier. */
-#define barrier() asm volatile ("")
+ The compiler will not reorder operations across an
+ optimization barrier. See "Optimization Barriers" in the
+ reference guide for more information.*/
+#define barrier() asm volatile ("" : : : "memory")
#endif /* threads/synch.h */