From ec1159d9856fcf2c06338abcbb0e296594c2fbe6 Mon Sep 17 00:00:00 2001 From: Joseph Muia Date: Wed, 25 Jul 2018 22:07:24 -0400 Subject: [PATCH] Fix typo: queue_{pop,push} not thread_{pop,push} --- book/book.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/book.tex b/book/book.tex index cd04cb3..3c132de 100644 --- a/book/book.tex +++ b/book/book.tex @@ -4005,11 +4005,11 @@ \section{Condition variables} A condition variable is a data structure associated with a condition; it allows threads to block until the condition becomes true. For -example, \verb"thread_push" might want to check whether the queue is +example, \verb"queue_push" might want to check whether the queue is full and, if so, block until it is not full. So the ``condition'' we are interested in is ``queue not full''. -Similarly, \verb"thread_pop" might want to wait for a condition +Similarly, \verb"queue_pop" might want to wait for a condition like ``queue not empty''. Here's how we can add these capabilities to the queue code. First