Add redirection from "Full(y) multi-copy atomic" to "Multi-copy atomic"
in Index as well.  To make this indirection effective in both single and two
level Index pages, move \IfIndexHier{...}{} into indexsee.tex.

Signed-off-by: Akira Yokosawa <[email protected]>
---
 glossary.tex    | 1 +
 indexsee.tex    | 4 ++++
 perfbook-lt.tex | 2 --
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/glossary.tex b/glossary.tex
index 9ded12f8..bc7ebed1 100644
--- a/glossary.tex
+++ b/glossary.tex
@@ -482,6 +482,7 @@
        Note that this means that if a CPU does a write to a given
        location followed immediately by a read from that same location,
        it might take significant time for that read to complete.
+       Sometimes called ``full(y) multi-copy atomic'' for distinction.
        (See also ``other-multi-copy atomic'' and ``non-multi-copy atomic''.)
 \item[\IXG{Mutual-Exclusion Mechanism}:]
        A software abstraction that regulates threads' access to
diff --git a/indexsee.tex b/indexsee.tex
index 85527197..4cf02e10 100644
--- a/indexsee.tex
+++ b/indexsee.tex
@@ -1,3 +1,6 @@
+% effecive in both single- and two- level index
+\index{Full(y) multi-copy atomic|see{Multi-copy atomic}}
+\IfIndexHier{ % effective only in two-level index
 \index{Address dependency|see{Dependency, address}}
 \index{Anti-Heisenbug|see{Heisenbug, anti-}}
 \index{Associativity|see{Cache associativity}}
@@ -36,3 +39,4 @@
 \index{Write memory barrier|see{Memory barrier, write}}
 \index{Write miss|see{Cache miss, write}}
 \index{Write-side critical section|see{Critical section, write-side}}
+}{}
diff --git a/perfbook-lt.tex b/perfbook-lt.tex
index fdcb5e8d..e6e5e609 100644
--- a/perfbook-lt.tex
+++ b/perfbook-lt.tex
@@ -729,9 +729,7 @@
 
 % Index if enabled
 \IfIndexOn{
-\IfIndexHier{
 \input{indexsee}
-}{}
 \phantomsection
 \IfEbookSize{
 \idxlayout{columns=2}
-- 
2.34.1



Reply via email to