<div dir="ltr"><div><div><div>I have an application (a video wall) that has a (grossly simplified) pipeline structure of a single video input, a tee element, and anywhere up to 40 output bins attached to the tee. Each output bin contains (among other things) a video sink for a different monitor in the video wall.<br><br></div>The video wall can be modified dynamically by the user as a video is playing. Rows, columns or random collections of output bins can be added or removed by a single dbus command.<br><br></div>Currently my routines that add and remove collections of bins do so one bin at a time. So my remover routine, for example, will block an output bin, detach it from the tee, set its state to NULL, remove it from the pipeline, and free it, before going on to the next.<br><br></div>I would love to speed these operations up and do each step in parallel for each bin, but I'm unsure on how best to wait on a collection of bins to see when they have all finished changing states, so that I know when to move on to the next step. Does anyone have any suggestions?<br><br clear="all"><div><div><div><div><br>-- <br><div class="gmail_signature">Stirling Westrup<br>Programmer, Entrepreneur.<br><a href="https://www.linkedin.com/e/fpf/77228" target="_blank">https://www.linkedin.com/e/fpf/77228</a><br><a href="http://www.linkedin.com/in/swestrup" target="_blank">http://www.linkedin.com/in/swestrup</a><br><a href="http://technaut.livejournal.com" target="_blank">http://technaut.livejournal.com</a><br><a href="http://sourceforge.net/users/stirlingwestrup" target="_blank">http://sourceforge.net/users/stirlingwestrup</a></div>
</div></div></div></div></div>