Commit 475c5ef8 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

locking.rst: add captions to two tables

Those tables have a "caption" at the end, but ReST
actually expects it on a different way.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 5b9fd1d3
...@@ -29,43 +29,45 @@ In a normal program, you can increment a counter like so: ...@@ -29,43 +29,45 @@ In a normal program, you can increment a counter like so:
This is what they would expect to happen: This is what they would expect to happen:
+------------------------------------+------------------------------------+
| Instance 1 | Instance 2 | .. table:: Expected Results
+====================================+====================================+
| read very_important_count (5) | | +------------------------------------+------------------------------------+
+------------------------------------+------------------------------------+ | Instance 1 | Instance 2 |
| add 1 (6) | | +====================================+====================================+
+------------------------------------+------------------------------------+ | read very_important_count (5) | |
| write very_important_count (6) | | +------------------------------------+------------------------------------+
+------------------------------------+------------------------------------+ | add 1 (6) | |
| | read very_important_count (6) | +------------------------------------+------------------------------------+
+------------------------------------+------------------------------------+ | write very_important_count (6) | |
| | add 1 (7) | +------------------------------------+------------------------------------+
+------------------------------------+------------------------------------+ | | read very_important_count (6) |
| | write very_important_count (7) | +------------------------------------+------------------------------------+
+------------------------------------+------------------------------------+ | | add 1 (7) |
+------------------------------------+------------------------------------+
Table: Expected Results | | write very_important_count (7) |
+------------------------------------+------------------------------------+
This is what might happen: This is what might happen:
+------------------------------------+------------------------------------+ .. table:: Possible Results
| Instance 1 | Instance 2 |
+====================================+====================================+ +------------------------------------+------------------------------------+
| read very_important_count (5) | | | Instance 1 | Instance 2 |
+------------------------------------+------------------------------------+ +====================================+====================================+
| | read very_important_count (5) | | read very_important_count (5) | |
+------------------------------------+------------------------------------+ +------------------------------------+------------------------------------+
| add 1 (6) | | | | read very_important_count (5) |
+------------------------------------+------------------------------------+ +------------------------------------+------------------------------------+
| | add 1 (6) | | add 1 (6) | |
+------------------------------------+------------------------------------+ +------------------------------------+------------------------------------+
| write very_important_count (6) | | | | add 1 (6) |
+------------------------------------+------------------------------------+ +------------------------------------+------------------------------------+
| | write very_important_count (6) | | write very_important_count (6) | |
+------------------------------------+------------------------------------+ +------------------------------------+------------------------------------+
| | write very_important_count (6) |
Table: Possible Results +------------------------------------+------------------------------------+
Race Conditions and Critical Regions Race Conditions and Critical Regions
------------------------------------ ------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment