mxpi_synchronize
|
Function |
Pushes data to the output port only after all input ports have data. |
|---|---|
|
Synchronous/Asynchronous (Status) |
Synchronous |
|
Constraints |
None |
|
Plugin Base Class (Factory) |
mxpi_synchronize |
|
Input/Output |
Dynamic input: buffer (data type: MxpiBuffer) Static output: buffer (data type: MxpiBuffer) |
|
Property |
None |
Example
If the input buffers are the same (metadata is not affected), the plugin waits for all input ports to receive data and then sends data to the downstream plugin.

Assume that the data receiving sequence of the synchronization plugin mxpi_synchronize0 is demoA0, demoA0, demoA1, demoA0, demoA0, and so on. When the synchronization plugin receives the third data part demoA1, all ports have data, and the buffer is sent to the downstream plugin demoB.
Parent topic: Streaming Plugins