From: Ben Pfaff Date: Thu, 24 Jan 2008 18:48:41 +0000 (+0000) Subject: Fix reversal of "acquire" and "release" in Locks section. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18be77ca58ad1a721161bbd277a02d78828689c8;p=pintos-anon Fix reversal of "acquire" and "release" in Locks section. Reported by Valentin I. Spitkovsky . --- diff --git a/doc/reference.texi b/doc/reference.texi index c44988c..3b28d3b 100644 --- a/doc/reference.texi +++ b/doc/reference.texi @@ -683,7 +683,7 @@ implementation in @file{lib/kernel/list.c}. A @dfn{lock} is like a semaphore with an initial value of 1 (@pxref{Semaphores}). A lock's equivalent of ``up'' is called -``acquire'', and the ``down'' operation is called ``release''. +``release'', and the ``down'' operation is called ``acquire''. Compared to a semaphore, a lock has one added restriction: only the thread that acquires a lock, called the lock's ``owner'', is allowed to