I've recently started using TBB for some of my algorithmsand would like to know if there is some "clever" way to manage status bar updates. Imagine a loop that goes from 1 to n doing something and updating a status bar as it motors along. Let's assume this has been converted to a parallel_for - how would we update the status.
Putting a lock around the statusbar isa possibility but I dont want to resort to that. Is there a point where I can insert status bar updates as each parallel task completes ? I imagine this is a problem others have encountered and I'm interested in seeinghow this has been tackled.
Thanks for any help on this topic. This forum's great - please keep up the good work.