Skip to content

Commit 250ee60

Browse files
authored
Diagram added to Parallel Computation scenario (#486)
1 parent a6618f7 commit 250ee60

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
8.26 KB
Loading

user-guide/modules/ROOT/pages/task-parallel-computation.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,11 @@ Task 2 exiting...
271271

272272
For message queues, consider the following sample using boost:fiber[], where you can type messages manually, starting with a receiver Id, and a receiver fiber prints the messages from the queue, if the message is for that receiver.
273273

274-
This simulates a very lightweight fiber-based message loop using user input. Receivers 1 and 2 only take messages where they have been identified as the desired receiver. Receiver 3 takes any message.
274+
This simulates a very lightweight fiber-based message loop using user input. Receivers 1 and 2 only take messages where they have been identified as the desired receiver. Receiver 3 takes any message, and as such is the _fallback handler_. For example:
275+
276+
image::message-queue.png[]
277+
278+
Now for the code:
275279

276280
[source,cpp]
277281
----

0 commit comments

Comments
 (0)