if(slave==NULL){nlerror("Received 'slaveAbortedBuildTask' from unknown slave at '%s'",sender->getModuleName().c_str());m_Slaves.erase(sender);/*m_SlavesMutex.unlock();*/return;}
if(slaveIt==m_Slaves.end()){nlerror("Received 'slaveAbortedBuildTask' from unknown slave at '%s'",sender->getModuleName().c_str());m_Slaves.erase(sender);/*m_SlavesMutex.unlock();*/return;}
if(slave==NULL){nlerror("Received 'slaveRefusedBuildTask' from unknown slave at '%s'",sender->getModuleName().c_str());m_Slaves.erase(sender);/*m_SlavesMutex.unlock();*/return;}
if(slaveIt==m_Slaves.end()){nlerror("Received 'slaveRefusedBuildTask' from unknown slave at '%s'",sender->getModuleName().c_str());m_Slaves.erase(sender);/*m_SlavesMutex.unlock();*/return;}
if(slave==NULL){nlerror("Received 'slaveReloadedSheets' from unknown slave at '%s'",sender->getModuleName().c_str());m_Slaves.erase(sender);/*m_SlavesMutex.unlock();*/return;}
if(slaveIt==m_Slaves.end()){nlerror("Received 'slaveReloadedSheets' from unknown slave at '%s'",sender->getModuleName().c_str());m_Slaves.erase(sender);/*m_SlavesMutex.unlock();*/return;}
if(slave==NULL){nlerror("Received 'slaveBuildReadySuccess' from unknown slave at '%s'",sender->getModuleName().c_str());m_Slaves.erase(sender);/*m_SlavesMutex.unlock();*/return;}
if(slaveIt==m_Slaves.end()){nlerror("Received 'slaveBuildReadySuccess' from unknown slave at '%s'",sender->getModuleName().c_str());m_Slaves.erase(sender);/*m_SlavesMutex.unlock();*/return;}
if(slave==NULL){nlerror("Received 'slaveBuildReadyFail' from unknown slave at '%s'",sender->getModuleName().c_str());m_Slaves.erase(sender);/*m_SlavesMutex.unlock();*/return;}
if(slaveIt==m_Slaves.end()){nlerror("Received 'slaveBuildReadyFail' from unknown slave at '%s'",sender->getModuleName().c_str());m_Slaves.erase(sender);/*m_SlavesMutex.unlock();*/return;}
CSlave*slave=slaveIt->second;
//m_SlavesMutex.unlock();
//m_SlavesMutex.unlock();
slave->BuildReadyState=0;
slave->BuildReadyState=0;
// --slave->SaneBehaviour; // allow this behaviour.
// --slave->SaneBehaviour; // allow this behaviour.
if(slave==NULL){nlerror("Received 'vectorPushString' from unknown slave at '%s'",sender->getModuleName().c_str());m_Slaves.erase(sender);/*m_SlavesMutex.unlock();*/return;}
if(slaveIt==m_Slaves.end()){nlerror("Received 'vectorPushString' from unknown slave at '%s'",sender->getModuleName().c_str());m_Slaves.erase(sender);/*m_SlavesMutex.unlock();*/return;}
CSlave*slave=slaveIt->second;
//m_SlavesMutex.unlock();
//m_SlavesMutex.unlock();
slave->Vector.push_back(str);
slave->Vector.push_back(str);
}
}
@ -483,8 +491,9 @@ public:
virtualvoidrun()// this is sanely run from the update thread
virtualvoidrun()// this is sanely run from the update thread
if(slave==NULL){nlerror("Received 'updateDatabaseStatusByVector' from unknown slave at '%s'",sender->getModuleName().c_str());m_Slaves.erase(sender);/*m_SlavesMutex.unlock();*/return;}
if(slaveIt==m_Slaves.end()){nlerror("Received 'updateDatabaseStatusByVector' from unknown slave at '%s'",sender->getModuleName().c_str());m_Slaves.erase(sender);/*m_SlavesMutex.unlock();*/return;}
if(slave==NULL){nlerror("Received 'setAvailablePlugins' from unknown slave at '%s'",sender->getModuleName().c_str());m_Slaves.erase(sender);/*m_SlavesMutex.unlock();*/return;}
if(slaveIt==m_Slaves.end()){nlerror("Received 'setAvailablePlugins' from unknown slave at '%s'",sender->getModuleName().c_str());m_Slaves.erase(sender);/*m_SlavesMutex.unlock();*/return;}