X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Ftour.texi;fp=doc%2Ftour.texi;h=aed36fec51cb647ae04db47fa03c59555c17e882;hb=17ecbdac5580a6406b0d6ec84fa17be1f4bb2507;hp=efa1166abd072dd814c565fe362883675263c240;hpb=72554cd5bfdece5b905928fc98f2a09f41b92d76;p=pintos-anon diff --git a/doc/tour.texi b/doc/tour.texi index efa1166..aed36fe 100644 --- a/doc/tour.texi +++ b/doc/tour.texi @@ -742,7 +742,7 @@ condition after the wait completes and, if necessary, wait again. Initializes @var{cond} as a new condition variable. @end deftypefun -@deftypefun void cond_wait (struct condition *@var{cond}) +@deftypefun void cond_wait (struct condition *@var{cond}, struct lock *@var{lock}) Atomically releases @var{lock} (the monitor lock) and waits for @var{cond} to be signaled by some other piece of code. After @var{cond} is signaled, reacquires @var{lock} before returning.