Commit 1c586564 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - sub progress can now be removed

parent 3b124b55
......@@ -86,6 +86,14 @@ void WProgressCombiner::addSubProgress( boost::shared_ptr< WProgress > progress
lock.unlock();
}
void WProgressCombiner::removeSubProgress( boost::shared_ptr< WProgress > progress )
{
boost::unique_lock<boost::shared_mutex> lock = boost::unique_lock<boost::shared_mutex>( m_updateLock );
// add the progress to the children list
m_children.erase( progress );
lock.unlock();
}
void WProgressCombiner::finish()
{
// combiner just propagate the finish request down to all children
......
......@@ -85,6 +85,13 @@ public:
*/
virtual void addSubProgress( boost::shared_ptr< WProgress > progress );
/**
* Removes the specified sub progress from this combiner.
*
* \param progress the progress to remove.
*/
virtual void removeSubProgress( boost::shared_ptr< WProgress > progress );
/**
* Function updating the internal state. This needs to be called before any get function to ensure the getter return the right
* values.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment