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... |
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).