X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Fsynch.c;h=a892454c8e9adf186c8189173d46c635b15e13e4;hb=ad3d6b23597a3ab6707e89355122a04499289965;hp=85af57d63ac8c0f59f8b254c0d4db46f495d392b;hpb=98b92b40dcb0b3114fbb6a48f9a56bee3588b4a9;p=pintos-anon diff --git a/src/threads/synch.c b/src/threads/synch.c index 85af57d..a892454 100644 --- a/src/threads/synch.c +++ b/src/threads/synch.c @@ -250,7 +250,7 @@ cond_init (struct condition *cond, const char *name) } /* Atomically releases LOCK and waits for COND to be signaled by - some other piece of code. After COND is signalled, LOCK is + some other piece of code. After COND is signaled, LOCK is reacquired before returning. LOCK must be held before calling this function. @@ -261,7 +261,7 @@ cond_init (struct condition *cond, const char *name) again. A given condition variable is associated with only a single - lock, but one lock may be be associated with any number of + lock, but one lock may be associated with any number of condition variables. That is, there is a one-to-many mapping from locks to condition variables.