Discussions of the Parallel Programming book
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Akira Yokosawa <akiyks@gmail.com>
Cc: perfbook@vger.kernel.org
Subject: Re: [PATCH v2] locking: Update table layout
Date: Wed, 25 Oct 2017 15:40:23 -0700	[thread overview]
Message-ID: <20171025224023.GT3659@linux.vnet.ibm.com> (raw)
In-Reply-To: <5dee006d-1712-5383-0670-555cef1a5836@gmail.com>

On Thu, Oct 26, 2017 at 06:58:44AM +0900, Akira Yokosawa wrote:
> >From aa7899ff624e41740f4ed22eb43abf856caa6940 Mon Sep 17 00:00:00 2001
> From: Akira Yokosawa <akiyks@gmail.com>
> Date: Tue, 26 Oct 2017 06:51:42 +0900
> Subject: [PATCH v2] locking: Update table layout
> 
> To imply vertical lines, instead of coloring alternate rows,
> put light gray boxes in blank cells.
> 
> Suggested-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
> ---
> Change after v1:
>   The definition of "\x" is moved to within the "table" environment
>   to make the macro local.

Applied, verified that adding a "\x" after the table gives an error,
and pushed it out, thank you!

							Thanx, Paul

> --
>  locking/locking.tex | 41 +++++++++++++++++++----------------------
>  1 file changed, 19 insertions(+), 22 deletions(-)
> 
> diff --git a/locking/locking.tex b/locking/locking.tex
> index 9cb0176..14db27d 100644
> --- a/locking/locking.tex
> +++ b/locking/locking.tex
> @@ -1312,43 +1312,40 @@ or even milliseconds.
>  \label{sec:locking:Beyond Reader-Writer Locks}
> 
>  \begin{table}
> +\renewcommand*{\arraystretch}{1.2}
> +\newcommand{\x}{\textcolor{gray!20}{\rule{7pt}{7pt}}}
>  \small
>  \centering
> -\begin{tabular}{l||c|c|c|c|c|c}
> -	~ ~ ~ ~ ~ ~ ~ ~ ~
> -	& \begin{picture}(6,70)(0,0)
> +\begin{tabular}{lcccccc}
> +	\toprule
> +	& \begin{picture}(6,65)(0,0)
>  		\rotatebox{90}{Null (Not Held)}
>  	  \end{picture}
> -	& \begin{picture}(6,70)(0,0)
> +	& \begin{picture}(6,65)(0,0)
>  		\rotatebox{90}{Concurrent Read}
>  	  \end{picture}
> -	& \begin{picture}(6,70)(0,0)
> +	& \begin{picture}(6,65)(0,0)
>  		\rotatebox{90}{Concurrent Write}
>  	  \end{picture}
> -	& \begin{picture}(6,70)(0,0)
> +	& \begin{picture}(6,65)(0,0)
>  		\rotatebox{90}{Protected Read}
>  	  \end{picture}
> -	& \begin{picture}(6,70)(0,0)
> +	& \begin{picture}(6,65)(0,0)
>  		\rotatebox{90}{Protected Write}
>  	  \end{picture}
> -	& \begin{picture}(6,70)(0,0)
> +	& \begin{picture}(6,65)(0,0)
>  		\rotatebox{90}{Exclusive}
>  	  \end{picture}
>  	\\
> -	\hline
> -%				 NL  CR  CW  PR    PW  EX
> -	\hline
> -	Null (Not Held)		& ~ & ~ & ~   & ~ & ~ & ~ \\
> -	\hline
> -	Concurrent Read		& ~ & ~ & ~   & ~ & ~ & X \\
> -	\hline
> -	Concurrent Write	& ~ & ~ & ~   & X & X & X \\
> -	\hline
> -	Protected Read		& ~ & ~ & X   & ~ & X & X \\
> -	\hline
> -	Protected Write		& ~ & ~ & X   & X & X & X \\
> -	\hline
> -	Exclusive		& ~ & X & X   & X & X & X \\
> +%				  NL   CR   CW     PR   PW   EX
> +	\cmidrule(r){1-1} \cmidrule{2-7}
> +	Null (Not Held)		& \x & \x & \x   & \x & \x & \x \\
> +	Concurrent Read		& \x & \x & \x   & \x & \x &  X \\
> +	Concurrent Write	& \x & \x & \x   &  X &  X &  X \\
> +	Protected Read		& \x & \x &  X   & \x &  X &  X \\
> +	Protected Write		& \x & \x &  X   &  X &  X &  X \\
> +	Exclusive		& \x &  X &  X   &  X &  X &  X \\
> +	\bottomrule
>  \end{tabular}
>  \caption{VAX/VMS Distributed Lock Manager Policy}
>  \label{tab:locking:VAX/VMS Distributed Lock Manager Policy}
> -- 
> 2.7.4
> 
> 


      reply	other threads:[~2017-10-25 22:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-24 13:26 [PATCH 1/2] locking: Update table layout Akira Yokosawa
2017-10-24 13:27 ` [PATCH 2/2] defer/rcuapi: Move sidewaystable caption to top Akira Yokosawa
2017-10-25 19:26   ` Paul E. McKenney
2017-10-25 21:58 ` [PATCH v2] locking: Update table layout Akira Yokosawa
2017-10-25 22:40   ` Paul E. McKenney [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171025224023.GT3659@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=akiyks@gmail.com \
    --cc=perfbook@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox