From: Ben Pfaff <blp@cs.stanford.edu>
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=37ddc971a1ba8510a128fe925a27b3319aa51cfd;p=pintos-anon

Fix reversal of "acquire" and "release" in Locks section.

Reported by Valentin I. Spitkovsky <vspitkovsky@yahoo.com>.
---

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