X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Fsynch.h;h=6b8f550e8798f6b9b916cf15ce8ec72861e283a8;hb=2e8d8e1e1d4aa9c90b78c6d40bc315dd4e5270b9;hp=53a5ee488cf07c83f68a7b136bc6506136180ac9;hpb=615bf3b3d2a8573ed6fb9ddc0055745e163ac999;p=pintos-anon diff --git a/src/threads/synch.h b/src/threads/synch.h index 53a5ee4..6b8f550 100644 --- a/src/threads/synch.h +++ b/src/threads/synch.h @@ -41,10 +41,10 @@ void cond_wait (struct condition *, struct lock *); 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. */ + The compiler will not reorder operations across an + optimization barrier. */ #define barrier() asm volatile ("") #endif /* threads/synch.h */