From 369e1fc6fc57a9ce6ec310babd4babdbe46e6ce6 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 3 Mar 2012 23:06:01 +0100 Subject: [PATCH] Changed: #1440 Modified some logging --HG-- branch : build_pipeline_v3 --- .../nel/tools/pipeline/service/module_pipeline_master.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/nel/tools/pipeline/service/module_pipeline_master.cpp b/code/nel/tools/pipeline/service/module_pipeline_master.cpp index ffbd748b6..b2e73a205 100644 --- a/code/nel/tools/pipeline/service/module_pipeline_master.cpp +++ b/code/nel/tools/pipeline/service/module_pipeline_master.cpp @@ -109,10 +109,10 @@ public: { if (moduleProxy->getModuleClassName() == "ModulePipelineSlave") { - nlassert(m_Slaves.find(moduleProxy) == m_Slaves.end()); - nlinfo("Slave UP (%s)", moduleProxy->getModuleName().c_str()); + nlassert(m_Slaves.find(moduleProxy) == m_Slaves.end()); + m_SlavesMutex.lock(); CSlave *slave = new CSlave(this, moduleProxy); @@ -127,7 +127,9 @@ public: if (moduleProxy->getModuleClassName() == "ModulePipelineSlave") { nlinfo("Slave DOWN (%s)", moduleProxy->getModuleName().c_str()); - + + nlassert(m_Slaves.find(moduleProxy) != m_Slaves.end()); + m_SlavesMutex.lock(); TSlaveMap::iterator slaveIt = m_Slaves.find(moduleProxy);