Barrier synchronization

This example illlustrates the use of the barrier synchronization elements. More...

Collaboration diagram for Barrier synchronization:

Classes

class  ex3::CSpendTime
 A custom cell that places generic nodes on the active stream after performing meaningless computations of variable duration. More...
class  ex3::CCountNodes
 A custom cell that writes to cout the number of nodes matching a specific node name pattern in incoming active pulses. More...

Detailed Description

This example illlustrates the use of the barrier synchronization elements.

A pulsar sends empty pulses through a user-defined number of concurrent cells that perform a meaningless computation of random duration. A cell that monitors the number of target nodes on the incoming active pulse is connected downstream on one of the concurrent paths. Without synchronization, the number of nodes on the active pulse depends on which paths is sampled. With barrier synchronization in before the monitoring, the number of nodes is always the same, equal to the total number of paths (except if the barrier times out on some of the paths).


Generated on Thu Oct 21 11:48:05 2010 for MFSM User Guide Examples by  doxygen 1.5.9