- {
- if ((*i).lock())
- {
- bbtkDebugMessage("process",4,
- " -> Executing "<<
- (*i).lock()->bbGetFullName()<<std::endl);
- (*i).lock()->bbExecute(true);
- }
- else
- {
- bbtkGlobalError("Strange error in BlackBox::bbGlobalProcessExecutionList() : Weak bb pointer in bbmgExecutionList is no more valid...");
- }
- }
+ bbtkDebugMessage("process",3,"BlackBox::bbGlobalProcessExecutionList() reentered !");
+ return;
+ }
+ bbmgGlobalProcessingExecutionList = true;
+
+ std::set<BlackBox::WeakPointer>::iterator i;
+ while (bbmgExecutionList.size()>0)
+ {
+ i = bbmgExecutionList.begin();
+ BlackBox::WeakPointer p = *i;
+ bbmgExecutionList.erase(i);
+ if (p.lock())
+ {
+ bbtkDebugMessage("process",4,
+ " -> Executing "<<
+ p.lock()->bbGetFullName()<<std::endl);
+ p.lock()->bbExecute(true);
+ }
+ else
+ {
+ bbtkGlobalError("Strange error in BlackBox::bbGlobalProcessExecutionList() : Weak bb pointer in bbmgExecutionList is no more valid...");
+ }