Skip to main content

utility:make producer consumer for each iterator

Version: 0.0.0

Description

Generates an iterator that can be consumed by the for_each operator.The chain of Operators are split into a first part : the producers and a second part : the consumers.Asynchronous buffers are indeed to connect the producers and the consumers.

Inputs

InputNameExpected type(s)Description
Pin -1try_generate_iterableboolif true, already iterable values connected in pin 3 like vectors, Scoping, TimefreqSupport, Containers and DataSources are split to iterate on it (default is true)
Pin 0iterableIterable object, generated by make_for_each_range oeprator, that can be combined with the one currently generated.
Pin 1
Required
operator_to_iterateoperatorOperator that must be reconnected with the range values.
Pin 2
Required
pin_indexint32
Pin 3
Required
valueA
Pin 4
Required
valueB
Pin 5
Required
valueC
Pin 1000
Required
producer_op1operator
Pin 1001
Required
output_pin_of_producer_op1int32
Pin 1002
Required
input_pin_of_consumer_op1int32
Pin 1003
Required
consumer_op1operator

Outputs

OutputNameExpected type(s)Description
Pin 0iteratorto connect to producer_consumer_for_each

Configurations

NameExpected type(s)Default valueDescription
mutexboolfalseIf this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

Scripting

Category: utility

Plugin: core

Scripting name: make_producer_consumer_for_each_iterator

Full name: utility.make_producer_consumer_for_each_iterator

Internal name: make_producer_consumer_for_each_iterator

License: None

Changelog

  • Version 0.0.0: Initial release.