X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=blobdiff_plain;f=src%2Fthreads%2Fsynch.h;h=6b8f550e8798f6b9b916cf15ce8ec72861e283a8;hp=53a5ee488cf07c83f68a7b136bc6506136180ac9;hb=f35d56069db7eb1bc09f48f7f40a594718611f95;hpb=6f7be4d89547dd7f9801f518e52572046a113daf 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 */